summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-11-03 17:35:58 +1300
committerAndrew Bartlett <abartlet@samba.org>2022-11-08 02:39:37 +0000
commit6fe6992258d2c59dfc8cb979deb25ba6020a1c06 (patch)
tree8bc1b67cf9347290d4715174845184cdebfeac9f /buildtools
parenta3ee0ce255c7acb7abf58e70b75025b5fefdb275 (diff)
downloadsamba-6fe6992258d2c59dfc8cb979deb25ba6020a1c06.tar.gz
wafsamba: Have CHECK_C_PROTOTYPE() pass through 'lib' into CHECK_CODE()
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_conftests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py
index ef632ba9033..2c3149c0fa2 100644
--- a/buildtools/wafsamba/samba_conftests.py
+++ b/buildtools/wafsamba/samba_conftests.py
@@ -126,7 +126,7 @@ def CHECK_LARGEFILE(conf, define='HAVE_LARGEFILE'):
@conf
-def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None, msg=None):
+def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None, msg=None, lib=None):
'''verify that a C prototype matches the one on the current system'''
if not conf.CHECK_DECLS(function, headers=headers):
return False
@@ -138,7 +138,8 @@ def CHECK_C_PROTOTYPE(conf, function, prototype, define, headers=None, msg=None)
headers=headers,
link=False,
execute=False,
- msg=msg)
+ msg=msg,
+ lib=lib)
@conf