From: Jelte Jansen Date: Thu, 29 Sep 2005 12:50:18 +0000 (+0000) Subject: test files headers X-Git-Tag: release-1.0.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=483cc9df14109f21f25729fa9595a7bc6ecd2f2d;p=thirdparty%2Fldns.git test files headers --- diff --git a/tests/configure.ac b/tests/configure.ac index e818f444..2ded4bc2 100644 --- a/tests/configure.ac +++ b/tests/configure.ac @@ -15,7 +15,7 @@ AC_PROG_MAKE_SET #AC_HEADER_STDC #AC_HEADER_SYS_WAIT # do the very minimum - we can always extend this -AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h]) +AC_CHECK_HEADERS([getopt.h stdlib.h stdio.h assert.h netinet/in.hctype.h time.h]) AC_CHECK_HEADERS(sys/param.h sys/mount.h,,, [ [ @@ -66,6 +66,10 @@ AH_BOTTOM([ #ifdef HAVE_ARPA_INET_H #include #endif + +#ifdef HAVE_TIME_H +#include +#endif ]) diff --git a/tests/dname-label-test.c b/tests/dname-label-test.c index d00d5970..798fe71f 100644 --- a/tests/dname-label-test.c +++ b/tests/dname-label-test.c @@ -2,16 +2,6 @@ /* lowlevel test functions */ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include int diff --git a/tests/notify.c b/tests/notify.c index a51279ba..eeab9d16 100644 --- a/tests/notify.c +++ b/tests/notify.c @@ -2,14 +2,7 @@ * send a notify packet to a server */ - -#include -#include -#include -#include -#include - -#include +#include "config.h" #include diff --git a/tests/rrsig-test.c b/tests/rrsig-test.c index bd8bc5dc..5f5f42cc 100644 --- a/tests/rrsig-test.c +++ b/tests/rrsig-test.c @@ -3,16 +3,6 @@ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include int main(void) diff --git a/tests/run-test11.c b/tests/run-test11.c index 63e0baf5..7825bc28 100644 --- a/tests/run-test11.c +++ b/tests/run-test11.c @@ -6,13 +6,7 @@ * Print the result */ -#include -#include -#include -#include -#include - -#include +#include "config.h" #include diff --git a/tests/run-test18.c b/tests/run-test18.c index 940bb552..428d32bb 100644 --- a/tests/run-test18.c +++ b/tests/run-test18.c @@ -3,13 +3,7 @@ * for a particulary domain */ -#include -#include -#include -#include -#include - -#include +#include "config.h" #include diff --git a/tests/run-test19.c b/tests/run-test19.c index 8023aeda..54897180 100644 --- a/tests/run-test19.c +++ b/tests/run-test19.c @@ -5,16 +5,6 @@ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include int diff --git a/tests/run-test20.c b/tests/run-test20.c index 8907dea2..8985e725 100644 --- a/tests/run-test20.c +++ b/tests/run-test20.c @@ -5,17 +5,6 @@ #include "config.h" -#include -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include int diff --git a/tests/run-test7.c b/tests/run-test7.c index e5b899c6..2d92fae8 100644 --- a/tests/run-test7.c +++ b/tests/run-test7.c @@ -8,16 +8,6 @@ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include void diff --git a/tests/serial.c b/tests/serial.c index f954c3f2..cdeef68e 100644 --- a/tests/serial.c +++ b/tests/serial.c @@ -1,15 +1,5 @@ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include void diff --git a/tests/server.c b/tests/server.c index 1a05a5c4..5ef14097 100644 --- a/tests/server.c +++ b/tests/server.c @@ -5,16 +5,6 @@ #include "config.h" -#include -#include -#include -#include -#include - -#ifdef HAVE_STDINT_H -#include -#endif /* HAVE_STDINT_H */ - #include int