From 98d16cbec065bc085eabd2f80f9515d5a1b8fdc9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 22 Mar 2010 18:50:29 +1100 Subject: [PATCH] build: fixed prototype test --- buildtools/wafsamba/samba_autoconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index ab3191dec0f..da434b12e1d 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) -- 2.11.4.GIT