]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Get rid of obsolescent configure test.
authorGuy Harris <[email protected]>
Mon, 16 Oct 2017 20:48:40 +0000 (13:48 -0700)
committerGuy Harris <[email protected]>
Mon, 16 Oct 2017 20:48:40 +0000 (13:48 -0700)
All UN*Xes, these days, let you include both <time.h> and <sys/time.h>.

config.h.in
configure
configure.in
netdissect-stdinc.h

index 6d695afaa1b67d93a87216d50f3b59b80dbaa562..9915b23195035a011de8a2be6a2479fe6ceef5c5 100644 (file)
 /* Define to 1 if you have the ANSI C header files. */
 #undef STDC_HEADERS
 
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
-
 /* define if you have ether_ntohost() and it works */
 #undef USE_ETHER_NTOHOST
 
index 4203e7317ca5f2e86dc06436b45fe2982069e347..88020c7f6a634f2b1231bd8634608d923100b0e8 100755 (executable)
--- a/configure
+++ b/configure
@@ -4083,42 +4083,6 @@ done
 
 fi
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
-$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
-if ${ac_cv_header_time+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_time=yes
-else
-  ac_cv_header_time=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
-$as_echo "$ac_cv_header_time" >&6; }
-if test $ac_cv_header_time = yes; then
-
-$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
-
-fi
-
-
 case "$host_os" in
 
 darwin*)
index ef0e8f4fe2aac23bce95c7fbf836f8bb2c08d88a..2c5939de705d49f247ada1139b69125a7bb1b104 100644 (file)
@@ -61,8 +61,6 @@ struct rtentry;
 #include <net/if.h>])
 fi
 
-AC_HEADER_TIME
-
 case "$host_os" in
 
 darwin*)
index d66a9f02500615fb0531087d6cf627bd420a4f15..da1d8dcd5ff706bc010410531a4013263947ca6e 100644 (file)
@@ -231,9 +231,7 @@ typedef char* caddr_t;
 #include <sys/socket.h>
 #include <netinet/in.h>
 
-#ifdef TIME_WITH_SYS_TIME
 #include <time.h>
-#endif
 
 #include <arpa/inet.h>