[commit: ghc] master: Fix below warning by including "unistd.h" also (3a04ce2)

git at git.haskell.org git at git.haskell.org
Mon May 19 20:52:55 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3a04ce29a2d92f58ab07f83f4970c544e4afdf00/ghc

>---------------------------------------------------------------

commit 3a04ce29a2d92f58ab07f83f4970c544e4afdf00
Author: Gabor Greif <ggreif at gmail.com>
Date:   Mon May 19 22:50:41 2014 +0200

    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.


>---------------------------------------------------------------

3a04ce29a2d92f58ab07f83f4970c544e4afdf00
 testsuite/tests/rts/exec_signals_prepare.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/tests/rts/exec_signals_prepare.c b/testsuite/tests/rts/exec_signals_prepare.c
index 26f30ac..2b01dd5 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.



More information about the ghc-commits mailing list