diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-28 10:48:59 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2021-04-20 15:52:14 +0800 |
commit | f858dda3b340171d21db61d032982e6b9ae7fda5 (patch) | |
tree | a9d9d429135daa7c5b1385145a125d4057be2d45 | |
parent | dc47e0a0c533afd21d51d9aa126ef2b27ae7ea9e (diff) | |
download | haskell-f858dda3b340171d21db61d032982e6b9ae7fda5.tar.gz |
[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 <stdlib.h> or explicitly provide a declaration for 'exit'
(cherry picked from commit 5a6c36ecb41fccc07c1b01fe0f330cd38c2a0c76)
-rw-r--r-- | testsuite/tests/concurrent/should_run/conc059_c.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <stdlib.h> #include <errno.h> #include <stdio.h> +// stdlib is needed for exit() +#include <stdlib.h> #if mingw32_HOST_OS #include <windows.h> #else |