diff options
| author | Gabor Greif <ggreif@gmail.com> | 2014-05-19 22:50:41 +0200 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2014-05-19 22:50:41 +0200 |
| commit | 3a04ce29a2d92f58ab07f83f4970c544e4afdf00 (patch) | |
| tree | 34545f2447823841bb9a465645436c6ca4b92832 | |
| parent | a8cba196e9d651571c4902706b73ab0c591dc335 (diff) | |
| download | haskell-3a04ce29a2d92f58ab07f83f4970c544e4afdf00.tar.gz | |
Fix below warning by including "unistd.h" also
exec_signals_prepare.c:26:5: warning: implicit declaration of function 'execv' is invalid in C99
[-Wimplicit-function-declaration]
execv(argv[1], argv+1);
^
1 warning generated.
| -rw-r--r-- | testsuite/tests/rts/exec_signals_prepare.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/rts/exec_signals_prepare.c b/testsuite/tests/rts/exec_signals_prepare.c index 26f30acc57..2b01dd5d1c 100644 --- a/testsuite/tests/rts/exec_signals_prepare.c +++ b/testsuite/tests/rts/exec_signals_prepare.c @@ -2,6 +2,7 @@ #include <stdio.h> #include <errno.h> #include <string.h> +#include <unistd.h> // Invokes a process, making sure that the state of the signal // handlers has all been set back to the unix default. |
