summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-22 18:50:29 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:00 +1000
commit98d16cbec065bc085eabd2f80f9515d5a1b8fdc9 (patch)
tree4ac03c1031596bdef5fd03ef237d1bd7d1123cd7
parentf429e621d98a7f5275c01556993d0abbbe3e8dc7 (diff)
downloadsamba-98d16cbec065bc085eabd2f80f9515d5a1b8fdc9.tar.gz
samba-98d16cbec065bc085eabd2f80f9515d5a1b8fdc9.tar.bz2
samba-98d16cbec065bc085eabd2f80f9515d5a1b8fdc9.zip
build: fixed prototype test
-rw-r--r--buildtools/wafsamba/samba_autoconf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index ab3191dec0..da434b12e1 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -368,7 +368,7 @@ def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None):
'''verify that a C prototype matches the one on the current system'''
if not conf.CHECK_DECLS(function, headers=headers):
return False
- return conf.CHECK_CODE('%s;\n%s()' % (prototype, function),
+ return conf.CHECK_CODE('%s; void *_x = (void *)%s' % (prototype, function),
define=define,
msg='Checking C prototype for %s' % function)