From 98fe813d9cd360f9ac3f9836cd1de9c4a174413f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 5 Sep 2019 21:37:33 -0700 Subject: [PATCH] lib/replace/wscript: Avoid generating nested main function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Matthias Dieter Wallnöfer Reviewed-by: Andreas Schneider --- lib/replace/wscript | 1 + 1 file changed, 1 insertion(+) 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') -- 2.47.3