aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits/execvpe.c
diff options
context:
space:
mode:
Diffstat (limited to 'cbits/execvpe.c')
-rw-r--r--cbits/execvpe.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cbits/execvpe.c b/cbits/execvpe.c
index 9599836..c27bca9 100644
--- a/cbits/execvpe.c
+++ b/cbits/execvpe.c
@@ -9,12 +9,10 @@
-------------------------------------------------------------------------- */
-#include "execvpe.h"
+#include "HsUnixConfig.h"
#if HAVE_EXECVPE
# define _GNU_SOURCE
-#else
-# undef execvpe
#endif
#include <errno.h>
@@ -28,6 +26,9 @@
#include <string.h>
#include <errno.h>
+#define HSUNIX_EXECVPE_H_NO_COMPAT
+#include "execvpe.h"
+
/*
* We want the search semantics of execvp, but we want to provide our
* own environment, like execve. The following copyright applies to