[quagga-dev 3133] Re: New warnings in current CVS

Andrew J. Schorr aschorr at telemetry-investments.com
Fri Apr 8 17:32:20 BST 2005


On Fri, Apr 08, 2005 at 05:20:05PM +0100, Paul Jakma wrote:
> Doesn't look like it. We'll hear about it reasonably quickly if we 
> use gnu/linux specific extensions anyway.

OK, the attached patch defines _GNU_SOURCE, and it eliminates the warnings
about an implicit declaration of strnlen.  And the tree still builds. :-)
Shall I commit?

Regards,
Andy
-------------- next part --------------
Index: lib/zebra.h
===================================================================
RCS file: /var/cvsroot/quagga/lib/zebra.h,v
retrieving revision 1.32
diff -b -u -p -r1.32 zebra.h
--- lib/zebra.h	2 Apr 2005 16:01:05 -0000	1.32
+++ lib/zebra.h	8 Apr 2005 16:25:46 -0000
@@ -25,6 +25,10 @@ Software Foundation, Inc., 59 Temple Pla
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
+#ifdef GNU_LINUX
+#define _GNU_SOURCE
+#endif /* GNU_LINUX */
+
 #ifdef SUNOS_5
 #define _XPG4_2
 #define __EXTENSIONS__


More information about the Quagga-dev mailing list