blob: de7f311834dc0162b910ba8a8a18aa1a97bdacbb [file] [log] [blame]
Brad Bishopc1d34332019-09-09 14:56:00 -04001From 3a935c638605bfb392ca7780d22c08c1a0a71e71 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 5 Sep 2019 21:37:33 -0700
4Subject: [PATCH 1/2] lib/replace/wscript: Avoid generating nested main
5 function
6
7clang is not happy when it sees another main nested inside the main
8function and fails the test for prctl syscall, therefore avoid adding
9implicit main() here
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 lib/replace/wscript | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/lib/replace/wscript b/lib/replace/wscript
17index a7fd25d..d6767fc 100644
18--- a/lib/replace/wscript
19+++ b/lib/replace/wscript
20@@ -137,6 +137,7 @@ def configure(conf):
21 }
22 ''',
23 'HAVE_PRCTL',
24+ addmain=False,
25 headers='sys/prctl.h',
26 msg='Checking for prctl syscall')
27
28--
292.23.0
30