From 79019dd6f1712f83bb72f30594610b04918c41d4 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Sun, 28 Feb 2021 10:48:59 +0800 Subject: [testsuite/darwin] fix conc059 This resolves the following: Compile failed (exit code 1) errors were: conc059_c.c:27:5: error: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] exit(0); ^ conc059_c.c:27:5: error: note: include the header or explicitly provide a declaration for 'exit' (cherry picked from commit 5a6c36ecb41fccc07c1b01fe0f330cd38c2a0c76) --- testsuite/tests/concurrent/should_run/conc059_c.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuite') diff --git a/testsuite/tests/concurrent/should_run/conc059_c.c b/testsuite/tests/concurrent/should_run/conc059_c.c index 58cb595073..89532caf4c 100644 --- a/testsuite/tests/concurrent/should_run/conc059_c.c +++ b/testsuite/tests/concurrent/should_run/conc059_c.c @@ -5,6 +5,8 @@ #include #include #include +// stdlib is needed for exit() +#include #if mingw32_HOST_OS #include #else -- cgit v1.2.1