diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-28 10:57:13 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 21:30:42 +0200 |
commit | b45ac5f5c61f98b0aacf65b456547142193ae1fc (patch) | |
tree | cc932f64c64d19ce520e6947f80ab181c3a741b5 /nhrpd/zbuf.c | |
parent | build: fix & clean up *SAN flags (diff) | |
download | frr-b45ac5f5c61f98b0aacf65b456547142193ae1fc.tar.xz frr-b45ac5f5c61f98b0aacf65b456547142193ae1fc.zip |
*: fix config.h/zebra.h include order
config.h (or, transitively, zebra.h) must be the first include file
listed for autoconf things like _GNU_SOURCE and _POSIX_C_SOURCE to work
correctly.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'nhrpd/zbuf.c')
-rw-r--r-- | nhrpd/zbuf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nhrpd/zbuf.c b/nhrpd/zbuf.c index 6e7cad8ae..c66229508 100644 --- a/nhrpd/zbuf.c +++ b/nhrpd/zbuf.c @@ -7,7 +7,10 @@ * (at your option) any later version. */ -#define _GNU_SOURCE +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <string.h> #include <unistd.h> #include <errno.h> |