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 --- pceplib/test/pcep_timers_tests.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pceplib/test/pcep_timers_tests.c') diff --git a/pceplib/test/pcep_timers_tests.c b/pceplib/test/pcep_timers_tests.c index adfea17e29..f3aa8307a7 100644 --- a/pceplib/test/pcep_timers_tests.c +++ b/pceplib/test/pcep_timers_tests.c @@ -21,6 +21,10 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include -- cgit v1.2.3