From 2384420387a7c6c2aaa983c48e98d4ab788ce65f Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 28 May 2013 18:08:02 -0700 Subject: [PATCH] Configure check for sys/time.h --- configure.ac | 4 ++++ examples/nfsclient-bcast.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 67004e7..d129e9e 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/examples/nfsclient-bcast.c b/examples/nfsclient-bcast.c index e9974a8..62ea654 100644 --- a/examples/nfsclient-bcast.c +++ b/examples/nfsclient-bcast.c @@ -37,7 +37,10 @@ #include #include #include + +#ifdef HAVE_SYS_TIME_H #include +#endif #ifdef HAVE_NET_IF_H #include -- 2.34.1