From: Khem Raj Date: Fri, 6 Sep 2019 04:37:33 +0000 (-0700) Subject: lib/replace/wscript: Avoid generating nested main function X-Git-Tag: talloc-2.3.1~833 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98fe813d9cd360f9ac3f9836cd1de9c4a174413f;p=thirdparty%2Fsamba.git lib/replace/wscript: Avoid generating nested main function clang is not happy when it sees another main nested inside the main function and fails the test for prctl syscall, therefore avoid adding implicit main() here Signed-off-by: Khem Raj Reviewed-by: Matthias Dieter Wallnöfer Reviewed-by: Andreas Schneider --- diff --git a/lib/replace/wscript b/lib/replace/wscript index 9af8ac49b2c..e7159c067c5 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -137,6 +137,7 @@ def configure(conf): } ''', 'HAVE_PRCTL', + addmain=False, headers='sys/prctl.h', msg='Checking for prctl syscall')