third_party:cmocka: Fix build when used in lib/tevent
authorAndreas Schneider <asn@samba.org>
Tue, 8 Jun 2021 12:29:06 +0000 (14:29 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 7 Jul 2021 05:07:30 +0000 (05:07 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
third_party/cmocka/wscript

index 3c2ad50801a1c06404651131449fc84a1dd60209..ebac963b0e1c9e703cf4941b79169631f7c67816 100644 (file)
@@ -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)