commit | d66a7b56634f88181dd2dd23706c30bf23366424 | [log] [tgz] |
---|---|---|
author | ajs <ajs> | Fri Apr 08 16:42:03 2005 +0000 |
committer | ajs <ajs> | Fri Apr 08 16:42:03 2005 +0000 |
tree | 42569fbc2de9016ad91db7669565e7b737ca3c11 | |
parent | 6811845b67999861388cf00d3ca0ee8471d29876 [diff] [blame] |
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>.
diff --git a/lib/zebra.h b/lib/zebra.h index 7d907ed..3a93b7a 100644 --- a/lib/zebra.h +++ b/lib/zebra.h
@@ -25,6 +25,10 @@ #include "config.h" #endif /* HAVE_CONFIG_H */ +#ifdef GNU_LINUX +#define _GNU_SOURCE +#endif /* GNU_LINUX */ + #ifdef SUNOS_5 #define _XPG4_2 #define __EXTENSIONS__