From: ajs Date: Fri, 8 Apr 2005 16:42:03 +0000 (+0000) Subject: 2005-04-08 Andrew J. Schorr X-Git-Tag: frr-2.0-rc1~3094 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d66a7b56634f88181dd2dd23706c30bf23366424;p=mirror%2Ffrr.git 2005-04-08 Andrew J. Schorr * 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 . --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 00b11a1aac..86a3b85614 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2005-04-08 Andrew J. Schorr + + * 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 . + 2005-04-08 Hasso Tepper * routemap.[ch]: Added "description ..." command. diff --git a/lib/zebra.h b/lib/zebra.h index 7d907ed7e7..3a93b7a9d9 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -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__