From 1f8031f79a5f2af850d20dfff193e4d0571cb8d3 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 23 Apr 2021 12:04:58 +0200 Subject: *: make sure `config.h` or `zebra.h` is first `config.h` has all the defines from autoconf, which may include things that switch behavior of other included headers (e.g. _GNU_SOURCE enabling prototypes for additional functions.) So, the first include in any `.c` file must be either `config.h` (with the appropriate guard) or `zebra.h` (which includes `config.h` first thing.) Signed-off-by: David Lamparter --- ospf6d/ospf6_routemap_nb_config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ospf6d/ospf6_routemap_nb_config.c') diff --git a/ospf6d/ospf6_routemap_nb_config.c b/ospf6d/ospf6_routemap_nb_config.c index 3c7741e47..cd0a3260d 100644 --- a/ospf6d/ospf6_routemap_nb_config.c +++ b/ospf6d/ospf6_routemap_nb_config.c @@ -17,6 +17,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include "lib/command.h" #include "lib/log.h" #include "lib/northbound.h" -- cgit v1.2.3