should work - please report if they don't:
[adns] OS
pre-1.0 Linux glibc 2.1 (actually tested on Debian 2.2).
- pre-1.0 FreeBSD 3.2
+ pre-1.0 FreeBSD 3.2
pre-1.0 Solaris 2.6, 2.7, 2.8
pre-1.0 HP-UX 10.20, 11.00
pre-1.0 IRIX 6.5 *not* with GCC [1], --disable-dynamic
+ AIX no dynamic
Later versions of the same OS should work too. [adns] is the latest
version of adns that has been tested. Usually entries in this table
mean they pass adns's own regression test, when compiled with GCC.
Portability fixes:
* Fix <sys/fcntl.h> in client/adnsresfilter.c to <fcntl.h>.
- * #include <sys/types.h> and <unistd.h> for fcntl in */*.c.
+ * Add missing <sys/types.h>, <unistd.h>, <time.h>, <sys/time.h>.
* Cope with compilers that don't do `inline'.
* Do not use variadic macro, use stdarg instead (adnslogres.c).
* #include "config.h" before "adns.h".
#include <stdarg.h>
#include <stdlib.h>
#include <assert.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
srcdir= @srcdir@
VPATH= @srcdir@
-CLIENTS= adnstest adnshost adnslogres adnsresfilter
+PROGS_SYSDEP= @PROGS_HAVE_TSEARCH@
+
+CLIENTS= adnstest adnshost adnslogres $(PROGS_SYSDEP)
AUTOCHDRS= harness.h hsyscalls.h hredirect.h
AUTOCSRCS= hrecord.c hplayback.c hcommon.c
include $(srcdir)/../settings.make
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#include "harness.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
exec </dev/null
fi
+playback=./${program}_playback
+if test ! -f $playback
+then
+ printf "SKIPPED-$casename "
+ mrc=5
+ exit
+fi
+
set +e
-ADNS_TEST_REPORT_FD=3 3>>"$ocase.report" >"$ocase.out" 2>"$ocase.err" \
-ADNS_TEST_IN_FD=4 \
- ./${program}_playback $initflags"$initstring" $queryargs
+ADNS_TEST_REPORT_FD=3 ADNS_TEST_IN_FD=4 \
+ 3>>"$ocase.report" >"$ocase.out" 2>"$ocase.err" \
+ $playback $initflags"$initstring" $queryargs
rc=$?
set -e
fi
done
-cat >"$ocase.leftover"
+cat <&4 >"$ocase.leftover"
if egrep . /dev/null "$ocase.leftover"
then
failwhy="$failwhy EXITED EARLY"