Configure check for sys/time.h
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 29 May 2013 01:08:02 +0000 (18:08 -0700)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 29 May 2013 01:08:02 +0000 (18:08 -0700)
configure.ac
examples/nfsclient-bcast.c

index 67004e7b58003e751a9a37d98f3a125793589359..d129e9ea43b59e9dee211aa8762ccdfd991300d9 100644 (file)
@@ -101,6 +101,10 @@ AC_CHECK_HEADERS([utime.h])
 dnl Check for net/if.h
 AC_CHECK_HEADERS([net/if.h])
 
+# check for sys/time.h
+dnl Check for sys/time.h
+AC_CHECK_HEADERS([sys/time.h])
+
 # check for sys/ioctl.h
 dnl Check for sys/ioctl.h
 AC_CHECK_HEADERS([sys/ioctl.h])
index e9974a8ee7eb65c7adb675ca7ee6939d243c4aea..62ea6549d29ba295003feeb82932565545c0aa44 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+
+#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
 
 #ifdef HAVE_NET_IF_H
 #include <net/if.h>