Skip to content
Snippets Groups Projects
Commit 7bad9d7d authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel :man_dancing:
Browse files

Have "execvpe.h" provide execvpe() again

Turns out `process` reuses `unix`'s execvpe() implementation,
and the refactoring in f24ba78f
broke process.
parent 078666f4
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,13 @@
execvpe(3) is available, we use that instead.
-------------------------------------------------------------------------- */
#include "execvpe.h"
#include "HsUnixConfig.h"
#include "execvpe.h"
#if HAVE_EXECVPE
# define _GNU_SOURCE
#else
# undef execvpe
#endif
#include <errno.h>
......
......@@ -4,8 +4,23 @@
Interface for code in cbits/execvpe.c
------------------------------------------------------------------------- */
#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
#if HAVE_EXECVPE
# define _GNU_SOURCE
# include <unistd.h>
#else
# define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
#endif
// implemented in cbits/ghcrts.c
extern void pPrPr_disableITimers (void);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment