[commit: packages/unix] master, safefixes710again: Repeat execvpe(3) prototype (fup to 7bad9d7d52d) (256b191)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 15:50:48 UTC 2015


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

On branches: master,safefixes710again
Link       : http://ghc.haskell.org/trac/ghc/changeset/256b19184bcb05c3cd9a6061730b7d67d61c0763/unix

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

commit 256b19184bcb05c3cd9a6061730b7d67d61c0763
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Sat Dec 6 22:29:51 2014 +0100

    Repeat execvpe(3) prototype (fup to 7bad9d7d52d)
    
    This is needed in case `<unistd.h>` was included before "execvpe.h"
    w/o `_GNU_SOURCE` set (on Glibc systems)


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

256b19184bcb05c3cd9a6061730b7d67d61c0763
 include/execvpe.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/execvpe.h b/include/execvpe.h
index d4b6521..7faa0df 100644
--- a/include/execvpe.h
+++ b/include/execvpe.h
@@ -16,6 +16,8 @@ __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);
 #if HAVE_EXECVPE
 # define _GNU_SOURCE
 # include <unistd.h>
+extern int
+execvpe(const char *name, char *const argv[], char *const envp[]);
 #else
 # define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
 #endif



More information about the ghc-commits mailing list