diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-07 15:12:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:03:32 -0500 |
commit | 378ebea94609aaf004317b1a9b42304a8718714b (patch) | |
tree | caf1d97751c0ea249c46d936aea7c32b823da588 /source3 | |
parent | 9c90642198864e1d1cbac56eab02b67e4a4c1fd6 (diff) | |
download | samba-378ebea94609aaf004317b1a9b42304a8718714b.tar.gz samba-378ebea94609aaf004317b1a9b42304a8718714b.tar.bz2 samba-378ebea94609aaf004317b1a9b42304a8718714b.zip |
r10064: BUG 3052: adding OpenBSD timespec patch from Steve Williams <steve@celineandsteve.com>
(This used to be commit c7f7bcdb0f03068c983e89ba2f47655e77491434)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index f435366d09..5ebb3c1e14 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -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 |