about summary refs log tree commit diff
path: root/posix/tst-execvp4.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-execvp4.c')
-rw-r--r--posix/tst-execvp4.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/posix/tst-execvp4.c b/posix/tst-execvp4.c
index 531fab227b..589a56018f 100644
--- a/posix/tst-execvp4.c
+++ b/posix/tst-execvp4.c
@@ -5,6 +5,10 @@
 #include <unistd.h>
 #include <sys/stat.h>
 
+#ifndef EXECVP
+# define EXECVP(file, argv)  execvp (file, argv)
+#endif
+
 static int
 do_test (void)
 {
@@ -27,7 +31,7 @@ do_test (void)
 
   unsetenv ("PATH");
   char *argv[] = { buf + 9, NULL };
-  execvp (argv[0], argv);
+  EXECVP (argv[0], argv);
   return 0;
 }