summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-09-09 13:47:42 +0200
committerJeremy Allison <jra@samba.org>2015-09-10 00:36:16 +0200
commitcf5c28da00d46467bb4333e0f91822d37328cc20 (patch)
treef5f679440cd263cedf5cb4248a9f81b236bd7e28 /lib/replace/wscript
parent36830db46aba8b5875666e684e00178245e49816 (diff)
downloadsamba-cf5c28da00d46467bb4333e0f91822d37328cc20.tar.gz
replace: Fix check for gettimeofday()
The check does not include <sys/time.h> the test might fail with a implicit function declaration error. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Sep 10 00:36:16 CEST 2015 on sn-devel-104
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 30eede2a8db..9a8b7f70503 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -502,7 +502,9 @@ removeea setea
addmain=False,
msg='Checking for working strptime')
- conf.CHECK_CODE('gettimeofday(NULL, NULL)', 'HAVE_GETTIMEOFDAY_TZ', execute=False)
+ conf.CHECK_C_PROTOTYPE('gettimeofday',
+ 'int gettimeofday(struct timeval *tv, struct timezone *tz)',
+ define='HAVE_GETTIMEOFDAY_TZ', headers='sys/time.h')
conf.CHECK_CODE('#include "test/snprintf.c"',
define="HAVE_C99_VSNPRINTF",