Try omit-local-package (#116)
[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 # include <unistd.h>
18 extern int
19 execvpe(const char *name, char *const argv[], char *const envp[]);
20 #else
21 # define execvpe(name,argv,envp) __hsunix_execvpe(name,argv,envp)
22 #endif
23 #endif
24
25 #endif