*: make sure zebra.h is always included first
zebra.h pulls in config.h, which results in fiddling with things like
__FILE_OFFSET_BITS. It must always be included first, in order to set
flags that influence the compiler via <features.h>.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
diff --git a/tests/prng.c b/tests/prng.c
index 8d78ea5..bdcfb07 100644
--- a/tests/prng.c
+++ b/tests/prng.c
@@ -23,6 +23,8 @@
* 02111-1307, USA.
*/
+#include <zebra.h>
+
#include <assert.h>
#include <stdlib.h>
#include <string.h>
diff --git a/tests/test-cli.c b/tests/test-cli.c
index 3db44ee..6fab6d5 100644
--- a/tests/test-cli.c
+++ b/tests/test-cli.c
@@ -20,6 +20,8 @@
* 02111-1307, USA.
*/
+#include <zebra.h>
+
#include "common-cli.h"
DUMMY_DEFUN(cmd0, "arg ipv4 A.B.C.D");
diff --git a/tests/test-timer-correctness.c b/tests/test-timer-correctness.c
index 47c0b73..e523929 100644
--- a/tests/test-timer-correctness.c
+++ b/tests/test-timer-correctness.c
@@ -23,11 +23,11 @@
* 02111-1307, USA.
*/
+#include <zebra.h>
+
#include <stdio.h>
#include <unistd.h>
-#include <zebra.h>
-
#include "memory.h"
#include "pqueue.h"
#include "prng.h"
diff --git a/tests/test-timer-performance.c b/tests/test-timer-performance.c
index a529a5c..ee45ede 100644
--- a/tests/test-timer-performance.c
+++ b/tests/test-timer-performance.c
@@ -22,11 +22,12 @@
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
-#include <stdio.h>
-#include <unistd.h>
#include <zebra.h>
+#include <stdio.h>
+#include <unistd.h>
+
#include "thread.h"
#include "pqueue.h"
#include "prng.h"