lib/replace/wscript: Avoid generating nested main function
authorKhem Raj <raj.khem@gmail.com>
Fri, 6 Sep 2019 04:37:33 +0000 (21:37 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 17 Sep 2019 12:31:40 +0000 (12:31 +0000)
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@gmail.com>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/replace/wscript

index 9af8ac49b2c7795c22e68e4274ac4e5fc5a4fa0b..e7159c067c5672aa8b5b00a9f8a99682051add11 100644 (file)
@@ -137,6 +137,7 @@ def configure(conf):
                     }
                     ''',
                     'HAVE_PRCTL',
+                    addmain=False,
                     headers='sys/prctl.h',
                     msg='Checking for prctl syscall')