aboutsummaryrefslogtreecommitdiff
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/tst-execveat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/tst-execveat.c b/posix/tst-execveat.c
index 53178c1..bc4d1ae 100644
--- a/posix/tst-execveat.c
+++ b/posix/tst-execveat.c
@@ -78,9 +78,12 @@ static int
do_test (void)
{
DIR *dirp;
- int fd, fd_out;
+ int fd;
+#ifdef O_PATH
+ int fd_out;
char *tmp_dir, *symlink_name, *tmp_sh;
struct stat64 st;
+#endif
dirp = opendir ("/bin");
if (dirp == NULL)