Tweak execvpe.h hack (see 256b19184bcb) some more
[packages/unix.git] / include / execvpe.h
1 /* ----------------------------------------------------------------------------
2 (c) The University of Glasgow 2004
3
4 Interface for code in cbits/execvpe.c
5 ------------------------------------------------------------------------- */
6
7 #ifndef HSUNIX_EXECVPE_H
8 #define HSUNIX_EXECVPE_H
9
10 extern int
11 __hsunix_execvpe(const char *name, char *const argv[], char *const envp[]);
12
13 // this hack is needed for `process`; to be removed in unix-2.8
14 #ifndef HSUNIX_EXECVPE_H_NO_COMPAT
15 #include "HsUnixConfig.h"
16 #if HAVE_EXECVPE
17 # define _GNU_SOURCE
18 # include <unistd.h>
19 extern int
20 execvpe(const char *name, char *const argv[], char *const envp[]);
21 #else
22 # define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
23 #endif
24 #endif
25
26 // implemented in cbits/ghcrts.c
27 extern void pPrPr_disableITimers (void);
28
29 #endif