diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-09-05 21:37:33 -0700 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-09-17 12:31:40 +0000 |
commit | 98fe813d9cd360f9ac3f9836cd1de9c4a174413f (patch) | |
tree | 2181e950b2c31375afa061318730407a19c4001a /lib | |
parent | 84f544b55f235e2f08596bf4b7854460af008f88 (diff) | |
download | samba-98fe813d9cd360f9ac3f9836cd1de9c4a174413f.tar.gz |
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 <raj.khem@gmail.com>
Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/wscript | 1 |
1 files changed, 1 insertions, 0 deletions
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') |