summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorajs <ajs>2005-04-08 19:02:04 +0000
committerajs <ajs>2005-04-08 19:02:04 +0000
commit5ddb7661c43489d1e5fec770512efeaa3a9477a5 (patch)
treee4fa0a9f22e0f8084926425da195484f779f5e2f
parent5d1ff612295f2547db11d9f9d117e7c70d9f8c91 (diff)
downloadquagga-5ddb7661c43489d1e5fec770512efeaa3a9477a5.tar.bz2
quagga-5ddb7661c43489d1e5fec770512efeaa3a9477a5.tar.xz
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/sigevent.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index a6f3ca49..13426eed 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,5 +1,9 @@
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+ * sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.
+
+2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
* vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate
compiler warnings when assigning a (const char *) value to
struct iovec iov_base.
diff --git a/lib/sigevent.c b/lib/sigevent.c
index 9c25d764..08141afa 100644
--- a/lib/sigevent.c
+++ b/lib/sigevent.c
@@ -27,7 +27,9 @@
#ifdef HAVE_UCONTEXT_H
#ifdef GNU_LINUX
/* get REG_EIP from ucontext.h */
+#ifndef __USE_GNU
#define __USE_GNU
+#endif /* __USE_GNU */
#endif /* GNU_LINUX */
#include <ucontext.h>
#endif /* HAVE_UCONTEXT_H */