]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Fri, 8 Apr 2005 16:42:03 +0000 (16:42 +0000)
committerajs <ajs>
Fri, 8 Apr 2005 16:42:03 +0000 (16:42 +0000)
* zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE.  This
  fixes a problem where we were not getting the declaration of strnlen
  in <string.h>.

lib/ChangeLog
lib/zebra.h

index 00b11a1aac084685c56b112f4b762237546b23c8..86a3b85614e6b19a5994666e53fd28214ff6ebb3 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE.  This
+         fixes a problem where we were not getting the declaration of strnlen
+         in <string.h>.
+
 2005-04-08 Hasso Tepper <hasso at quagga.net>
 
        * routemap.[ch]: Added "description ..." command.
index 7d907ed7e7e08fc7b227013e8bbfb166fc1fcc65..3a93b7a9d911afd8d09a669da9f9712cc654d062 100644 (file)
@@ -25,6 +25,10 @@ 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__