aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/execvpe.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/execvpe.h')
-rw-r--r--include/execvpe.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/execvpe.h b/include/execvpe.h
index 7faa0df..1fd2fbb 100644
--- a/include/execvpe.h
+++ b/include/execvpe.h
@@ -7,12 +7,12 @@
#ifndef HSUNIX_EXECVPE_H
#define HSUNIX_EXECVPE_H
-#include "HsUnixConfig.h"
-
extern int
__hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);
// this hack is needed for `process`; to be removed in unix-2.8
+#ifndef HSUNIX_EXECVPE_H_NO_COMPAT
+#include "HsUnixConfig.h"
#if HAVE_EXECVPE
# define _GNU_SOURCE
# include <unistd.h>
@@ -21,6 +21,7 @@ execvpe(const char *name, char *const argv[], char *const envp[]);
#else
# define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
#endif
+#endif
// implemented in cbits/ghcrts.c
extern void pPrPr_disableITimers (void);