From: Ronnie Sahlberg Date: Wed, 29 May 2013 01:08:02 +0000 (-0700) Subject: Configure check for sys/time.h X-Git-Tag: upstream/1.9.6^2~199 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=2384420387a7c6c2aaa983c48e98d4ab788ce65f Configure check for sys/time.h --- 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