summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-05-04 15:52:58 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-05-04 16:03:07 +0200
commit2c71177309cc59788c2288c6033c9dbbd23f02c3 (patch)
tree84c6442b39d3e1c5d544063af51f204d502ce182 /posix
parent2a76821c3081d2c0231ecd2618f52662cb48fccd (diff)
downloadglibc-2c71177309cc59788c2288c6033c9dbbd23f02c3.tar.gz
glibc-2c71177309cc59788c2288c6033c9dbbd23f02c3.tar.xz
glibc-2c71177309cc59788c2288c6033c9dbbd23f02c3.zip
posix: Fix Hurd build failure in tst-execveat
This avoids a -Werror compilation failure due to unused local
variables.
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 53178c10d5..bc4d1aedc9 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)