summaryrefslogtreecommitdiff
path: root/third_party/cmocka
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-06-08 14:29:06 +0200
committerAndreas Schneider <asn@cryptomilk.org>2021-07-07 05:07:30 +0000
commit740a217264f10c5f3a9ecac8aab8727e45ff885d (patch)
tree9889933db2a68fa7752afaada7db779435154ac8 /third_party/cmocka
parent00bab5b3c821f272153a25ded9743460887a7907 (diff)
downloadsamba-740a217264f10c5f3a9ecac8aab8727e45ff885d.tar.gz
third_party:cmocka: Fix build when used in lib/tevent
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'third_party/cmocka')
-rw-r--r--third_party/cmocka/wscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/cmocka/wscript b/third_party/cmocka/wscript
index 3c2ad50801a..ebac963b0e1 100644
--- a/third_party/cmocka/wscript
+++ b/third_party/cmocka/wscript
@@ -3,6 +3,7 @@
from waflib import Options
def configure(conf):
+ conf.CHECK_FUNCS('strsignal')
conf.CHECK_FUNCS('longjmp siglongjmp')
if conf.CHECK_CMOCKA():
@@ -19,6 +20,7 @@ def build(bld):
bld.SAMBA_LIBRARY('cmocka',
source='cmocka.c',
+ cflags='-DHAVE_CONFIG_H=1',
deps=extra_libs,
allow_warnings=True,
private_library=True)