diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-28 10:48:59 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2021-03-07 22:19:19 +0800 |
commit | 5a6c36ecb41fccc07c1b01fe0f330cd38c2a0c76 (patch) | |
tree | 8dd7bbb0c88b3f3733fb869bd2ad028b91129423 | |
parent | c2c751b669ee75140ad5d2e05af87fa4f1f66d6b (diff) | |
download | haskell-5a6c36ecb41fccc07c1b01fe0f330cd38c2a0c76.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'
-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 19493aee3f..fa2ba1361f 100644 --- a/testsuite/tests/concurrent/should_run/conc059_c.c +++ b/testsuite/tests/concurrent/should_run/conc059_c.c @@ -2,6 +2,8 @@ #include "conc059_stub.h" #include <unistd.h> #include <stdio.h> +// stdlib is needed for exit() +#include <stdlib.h> #if mingw32_HOST_OS #include <windows.h> #endif |