mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Unconditionally declare strsignal
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 replaces that ifdef with the correct check, i.e. __POSIX_VISIBLE >= 200809.
This commit is contained in:
parent
92e488d5b8
commit
26894de91d
@ -130,7 +130,7 @@ char *strlwr (char *);
|
||||
char *strupr (char *);
|
||||
#endif
|
||||
|
||||
#ifndef DEFS_H /* Kludge to work around problem compiling in gdb */
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
char *strsignal (int __signo);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user