Skip to content
Snippets Groups Projects
Verified Commit 5a6c36ec authored by Moritz Angermann's avatar Moritz Angermann
Browse files

[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'
parent c2c751b6
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
#include "conc059_stub.h" #include "conc059_stub.h"
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
// stdlib is needed for exit()
#include <stdlib.h>
#if mingw32_HOST_OS #if mingw32_HOST_OS
#include <windows.h> #include <windows.h>
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment