aboutsummaryrefslogtreecommitdiff
path: root/posix/tst-execvp1.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-execvp1.c')
-rw-r--r--posix/tst-execvp1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/posix/tst-execvp1.c b/posix/tst-execvp1.c
index ecc673d124..8b718485d0 100644
--- a/posix/tst-execvp1.c
+++ b/posix/tst-execvp1.c
@@ -3,6 +3,10 @@
#include <stdlib.h>
#include <unistd.h>
+#ifndef EXECVP
+# define EXECVP(file, argv) execvp (file, argv)
+#endif
+
static int
do_test (void)
{
@@ -19,7 +23,7 @@ do_test (void)
char *argv[] = { (char *) "does-not-exist", NULL };
errno = 0;
- execvp (argv[0], argv);
+ EXECVP (argv[0], argv);
if (errno != ENOENT)
{