summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2007-05-10 16:53:04 +0000
committerPaul Jakma <paul.jakma@sun.com>2007-05-10 16:53:04 +0000
commitd46d2a24e997883d9e2623b4de36aa4a08ffc89c (patch)
tree31f05936514cb4125c39fee731631e0571d7cdd6 /lib
parent6bd1a7bab32b6b077bee687161c43dc0fe82076f (diff)
[autoconf] GNU_SOURCE can be defined twice, through AC_FUNC_STRNLEN
2007-05-10 Paul Jakma <paul.jakma@sun.com> * configure.ac: Use AC_GNU_SOURCE to define _GNU_SOURCE, rather than having lib/zebra.h do it. AC_FUNC_STRNLEN has side-effects with latest autoconf, use AC_CHECK_FUNC on strnlen instead. * lib/zebra.h: Don't try define _GNU_SOURCE, autoconf should do it.
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/zebra.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 5666cbad..4360c833 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-10 Paul Jakma <paul.jakma@sun.com>
+
+ * zebra.h: Don't try define _GNU_SOURCE, autoconf should do it.
+
2007-05-03 Paul Jakma <paul.jakma@sun.com>
* memtypes.c: Add MTYPE_ATTR_EXTRA and MTYPE_BGP_ROUTE_EXTRA
diff --git a/lib/zebra.h b/lib/zebra.h
index 3c01aec3..2451dbed 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -25,10 +25,6 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#ifdef GNU_LINUX
-#define _GNU_SOURCE
-#endif /* GNU_LINUX */
-
#ifdef SUNOS_5
#define _XPG4_2
#define __EXTENSIONS__