Permalink
Browse files

Configure check for sys/time.h

  • Loading branch information...
1 parent bff8fe4 commit 2384420387a7c6c2aaa983c48e98d4ab788ce65f @sahlberg committed May 29, 2013
Showing with 7 additions and 0 deletions.
  1. +4 −0 configure.ac
  2. +3 −0 examples/nfsclient-bcast.c
View
@@ -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])
@@ -37,7 +37,10 @@
#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>

0 comments on commit 2384420

Please sign in to comment.