compile execvpe only under Unix. The mingw's process.h header also contains
definition for execvpe which conflicts with our definition.
/* -----------------------------------------------------------------------------
(c) The University of Glasgow 1995-2004
/* -----------------------------------------------------------------------------
(c) The University of Glasgow 1995-2004
Our low-level exec() variant.
-------------------------------------------------------------------------- */
Our low-level exec() variant.
-------------------------------------------------------------------------- */
+#include "HsBase.h"
+
+#if !defined(mingw32_TARGET_OS) /* to the end */
/* Evidently non-Posix. */
/* #include "PosixSource.h" */
/* Evidently non-Posix. */
/* #include "PosixSource.h" */
#include <string.h>
#include <errno.h>
#include <string.h>
#include <errno.h>
* We want the search semantics of execvp, but we want to provide our
* own environment, like execve. The following copyright applies to
* this code, as it is a derivative of execvp:
* We want the search semantics of execvp, but we want to provide our
* own environment, like execve. The following copyright applies to
* this code, as it is a derivative of execvp:
setitimer(ITIMER_PROF, &itv, NULL);
# endif
}
setitimer(ITIMER_PROF, &itv, NULL);
# endif
}
+
+#endif
\ No newline at end of file
/* in Signals.c */
extern HsInt nocldstop;
/* in Signals.c */
extern HsInt nocldstop;
+#if !defined(mingw32_TARGET_OS)
/* in execvpe.c */
extern int execvpe(char *name, char *const argv[], char **envp);
extern void pPrPr_disableITimers (void);
/* in execvpe.c */
extern int execvpe(char *name, char *const argv[], char **envp);
extern void pPrPr_disableITimers (void);
/* -----------------------------------------------------------------------------
64-bit operations, defined in longlong.c
/* -----------------------------------------------------------------------------
64-bit operations, defined in longlong.c