git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84f544b
)
lib/replace/wscript: Avoid generating nested main function
author
Khem Raj
<raj.khem@gmail.com>
Fri, 6 Sep 2019 04:37:33 +0000
(21:37 -0700)
committer
Andreas 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
patch
|
blob
|
history
diff --git
a/lib/replace/wscript
b/lib/replace/wscript
index 9af8ac49b2c7795c22e68e4274ac4e5fc5a4fa0b..e7159c067c5672aa8b5b00a9f8a99682051add11 100644
(file)
--- 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')