r10064: BUG 3052: adding OpenBSD timespec patch from Steve Williams <steve@celineands...
authorGerald Carter <jerry@samba.org>
Wed, 7 Sep 2005 15:12:54 +0000 (15:12 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:32 +0000 (11:03 -0500)
(This used to be commit c7f7bcdb0f03068c983e89ba2f47655e77491434)

source3/configure.in

index f435366d09d5d1eaa1e55b80c1c564f4b5d6f98b..5ebb3c1e1466f5baabe081db9413c31c8c28205a 100644 (file)
@@ -958,7 +958,16 @@ AC_CACHE_CHECK([for struct timespec type],samba_cv_struct_timespec, [
 #include <stdlib.h>
 #include <stddef.h>
 #endif
-#include <time.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
 #if HAVE_AIO_H
 #include <aio.h>
 #endif