From 59861061f2ab1d3f4b28e83d2dcc3adf0f9acb04 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sun, 7 Dec 2014 16:01:51 +0100 Subject: Tweak execvpe.h hack (see 256b19184bcb) some more --- cbits/execvpe.c | 7 ++++--- cbits/ghcrts.c | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'cbits') 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 @@ -28,6 +26,9 @@ #include #include +#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 diff --git a/cbits/ghcrts.c b/cbits/ghcrts.c index 1e0dc1c..9003675 100644 --- a/cbits/ghcrts.c +++ b/cbits/ghcrts.c @@ -1,10 +1,11 @@ -#include "execvpe.h" - #ifdef __GLASGOW_HASKELL__ // for 'void StopTimer(void)' prototype # include "Rts.h" #endif +#define HSUNIX_EXECVPE_H_NO_COMPAT +#include "execvpe.h" + /* Copied verbatim from ghc/lib/std/cbits/system.c. */ void pPrPr_disableITimers (void) { -- cgit v1.2.3