Fix below warning by including "unistd.h" also
authorGabor Greif <ggreif@gmail.com>
Mon, 19 May 2014 20:50:41 +0000 (22:50 +0200)
committerGabor Greif <ggreif@gmail.com>
Mon, 19 May 2014 20:50:41 +0000 (22:50 +0200)
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.

testsuite/tests/rts/exec_signals_prepare.c

index 26f30ac..2b01dd5 100644 (file)
@@ -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.