[PATCH] Unconditionally declare strsignal
Christian Biesinger via Newlib <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Currently, newlib does not declare strsignal if DEFS_H is defined, ostensibly to work around a gdb bug. However, gdb itself compiles even with this ifndef removed, and this makes sim (another part of gdb) fail to compile. Since it is not clear exactly what issue this was working around, this patch just removes that ifndef. --- newlib/libc/include/string.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 60e837bc0..ec74b10d5 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -130,9 +130,7 @@ char *strlwr (char *); char *strupr (char *); #endif -#ifndef DEFS_H /* Kludge to work around problem compiling in gdb */ char *strsignal (int __signo); -#endif #ifdef __CYGWIN__ int strtosigno (const char *__name); -- 2.33.0.882.g93a45727a2-goog