aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-20 01:48:51 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-20 01:48:51 -0500
commit855df698c49610696c562979790381414243c63c (patch)
treef4293043cd2d57475b7eafa7f4f7ed6d7d65866f /include
parent8668f033bcd452cd7751ee34de32d77a8df6f9be (diff)
downloadmusl-855df698c49610696c562979790381414243c63c.zip
musl-855df698c49610696c562979790381414243c63c.tar.gz
musl-855df698c49610696c562979790381414243c63c.tar.bz2
move the GNU siginfo renaming so it doesn't lead to mismatching names
Diffstat (limited to 'include')
-rw-r--r--include/signal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h
index 9db7b2e..f5e87c7 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -8,6 +8,10 @@ extern "C" {
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#ifdef _GNU_SOURCE
+#define __siginfo siginfo
+#endif
+
#define __NEED_size_t
#define __NEED_pid_t
#define __NEED_uid_t
@@ -88,7 +92,6 @@ void (*sigset(int, void (*)(int)))(int);
#ifdef _GNU_SOURCE
typedef int (*sighandler_t)(int);
void (*bsd_signal(int, void (*)(int)))(int);
-#define __siginfo siginfo
#endif
#include <bits/signal.h>