From f9956b9524ddafdb9d0cec042213eaa8229aad8c Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 29 Mar 2011 01:49:16 +0100 Subject: Bring "ex" version up to date with 0.99.18 Release: 0.99.18ex15p -- Pipework Branch Also fixes issue with unknown attributes -- does not release them prematurely. Contains the "bgpd: New show commands for improved view and address family support", which is post 0.99.18. (But not RFC 5082 GTSM.) --- lib/misc.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'lib/misc.h') diff --git a/lib/misc.h b/lib/misc.h index 1c53f2e2..f5f9d9f6 100644 --- a/lib/misc.h +++ b/lib/misc.h @@ -22,17 +22,37 @@ #ifndef _ZEBRA_MISC_H #define _ZEBRA_MISC_H +/* "zconfig.h" is included at the start of this "misc.h", and at the start + * of "zebra.h". This ensures that we get defined early, so + * that all other #includes get the same set of features. + */ + #include "zconfig.h" +/* This is horrible... but for some purposes wish to turn *off* __USE_GNU. + * + * e.g: to persuade to give POSIX version of strerror_r !!! + */ +#ifdef NO_USE_GNU +# undef NO_USE_GNU +# ifdef __USE_GNU +# define NO_USE_GNU 1 +# undef __USE_GNU +# endif +#endif + /* Stuff which we generally expect to have */ -#include + #include +#include +#include #include #include #include #include +#include "confirm.h" #include "zassert.h" /* Bit number to bit mask */ -- cgit v1.2.3