public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] Unconditionally declare strsignal
@ 2021-10-27 18:06 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-10-27 18:06 UTC (permalink / raw)
  To: newlib-cvs;h=26894de91d296af502b53c243e71f88c06ea1a3d

commit 26894de91d296af502b53c243e71f88c06ea1a3d
Author: Christian Biesinger via Newlib <>
Date:   Wed Oct 27 12:41:22 2021 -0400

    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.

 newlib/libc/include/string.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 *);
-#ifndef DEFS_H	/* Kludge to work around problem compiling in gdb */
+#if __POSIX_VISIBLE >= 200809
 char	*strsignal (int __signo);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-27 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 18:06 [newlib-cygwin] Unconditionally declare strsignal Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).