[PATCH 1/2] lib/replace/wscript: Avoid generating nested main function
Khem Raj
raj.khem at gmail.com
Fri Sep 6 04:44:46 UTC 2019
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 <raj.khem at gmail.com>
---
lib/replace/wscript | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/replace/wscript b/lib/replace/wscript
index a7fd25d..d6767fc 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')
--
2.23.0
More information about the samba-technical
mailing list