diff options
author | Christian Biesinger via Newlib <newlib@sourceware.org> | 2021-10-27 12:41:22 -0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2021-10-27 20:02:06 +0200 |
commit | 26894de91d296af502b53c243e71f88c06ea1a3d (patch) | |
tree | 3ff87e796386cb08c34c9c2f5147b175b6ac1519 /newlib | |
parent | 92e488d5b828b65a012adc0cbb06ac07055548d1 (diff) | |
download | newlib-26894de91d296af502b53c243e71f88c06ea1a3d.zip newlib-26894de91d296af502b53c243e71f88c06ea1a3d.tar.gz newlib-26894de91d296af502b53c243e71f88c06ea1a3d.tar.bz2 |
Unconditionally declare strsignalcygwin-3_3_0-release
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.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/include/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 60e837b..32199c0 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -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 |