Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Biesinger via Newlib <newlib@sourceware.org>2021-10-27 19:41:22 +0300
committerCorinna Vinschen <corinna@vinschen.de>2021-10-27 21:02:06 +0300
commit26894de91d296af502b53c243e71f88c06ea1a3d (patch)
tree3ff87e796386cb08c34c9c2f5147b175b6ac1519
parent92e488d5b828b65a012adc0cbb06ac07055548d1 (diff)
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.
-rw-r--r--newlib/libc/include/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h
index 60e837bc0..32199c027 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