diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-28 10:48:59 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2021-05-07 09:17:23 +0800 |
commit | 79019dd6f1712f83bb72f30594610b04918c41d4 (patch) | |
tree | 63e4f11575d76cd5363b60091decfefce87d16a0 /testsuite/tests/concurrent | |
parent | 5f5b02c25130979ac7c9530e3c7d89e49beb5a24 (diff) | |
download | haskell-79019dd6f1712f83bb72f30594610b04918c41d4.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)
Diffstat (limited to 'testsuite/tests/concurrent')
-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 |