diff options
author | David Lamparter <equinox@diac24.net> | 2019-06-12 20:18:12 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-06-13 13:35:33 +0200 |
commit | 2618a52ed307ffe62f45fb345fa5d90a631fc4f6 (patch) | |
tree | e4de811dfe49ac12e8d6ba52b604b2f6beb1f159 /tests/lib | |
parent | bgpd: fix clang format warning (diff) | |
download | frr-2618a52ed307ffe62f45fb345fa5d90a631fc4f6.tar.xz frr-2618a52ed307ffe62f45fb345fa5d90a631fc4f6.zip |
*: config.h or zebra.h is the first #include
This is mostly relevant for Solaris, where config.h sets up some #define
that affect overall header behaviour, so it needs to be before anything
else.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/test_idalloc.c | 4 | ||||
-rw-r--r-- | tests/lib/test_seqlock.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/test_idalloc.c b/tests/lib/test_idalloc.c index 3053c1c07..ce1582b1b 100644 --- a/tests/lib/test_idalloc.c +++ b/tests/lib/test_idalloc.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "id_alloc.h" #include <inttypes.h> diff --git a/tests/lib/test_seqlock.c b/tests/lib/test_seqlock.c index 6b2b9ed8a..9cc6f8070 100644 --- a/tests/lib/test_seqlock.c +++ b/tests/lib/test_seqlock.c @@ -18,6 +18,10 @@ * Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include <stdio.h> #include <stdint.h> #include <inttypes.h> |