diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-09-15 01:53:09 -0700 |
---|---|---|
committer | Martin Winter <mwinter@opensourcerouting.org> | 2015-10-16 23:50:45 -0700 |
commit | 821df2cf18e5978cc7ab532a8695444380d08270 (patch) | |
tree | f306ad0e31d572c44193b5d709b4b3915ea89d90 /tests | |
parent | ca8ec20b017393dbe91ff9e5ae2b7ff12872f869 (diff) | |
download | quagga-821df2cf18e5978cc7ab532a8695444380d08270.tar.bz2 quagga-821df2cf18e5978cc7ab532a8695444380d08270.tar.xz |
*: 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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/prng.c | 2 | ||||
-rw-r--r-- | tests/test-cli.c | 2 | ||||
-rw-r--r-- | tests/test-timer-correctness.c | 4 | ||||
-rw-r--r-- | tests/test-timer-performance.c | 5 |
4 files changed, 9 insertions, 4 deletions
diff --git a/tests/prng.c b/tests/prng.c index 8d78ea52..bdcfb07a 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 3db44eec..6fab6d52 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 47c0b737..e523929b 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 a529a5ce..ee45ede6 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" |