aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 10:03:46 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 10:05:19 +0100
commit2796361516ebf60825189018cea24d2c5c24ea34 (patch)
treefbd17c9008d37c04d8d8662443212f16c7fd8b01 /cbits
parentd821f65105b1f618627ccdd743682b248dfdfa5a (diff)
Provide execvpe prototype if missing
Diffstat (limited to 'cbits')
-rw-r--r--cbits/execvpe.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cbits/execvpe.c b/cbits/execvpe.c
index 82e1bdc..708b8b2 100644
--- a/cbits/execvpe.c
+++ b/cbits/execvpe.c
@@ -25,6 +25,11 @@
#define HSUNIX_EXECVPE_H_NO_COMPAT
#include "execvpe.h"
+#if !defined(execvpe) && !HAVE_DECL_EXECVPE
+// On some archs such as AIX, the prototype may be missing
+int execvpe(const char *file, char *const argv[], char *const envp[]);
+#endif
+
/*
* We want the search semantics of execvp, but we want to provide our
* own environment, like execve. The following copyright applies to