]> sourceware.org Git - glibc.git/commitdiff
posix: Fix Hurd build failure in tst-execveat
authorFlorian Weimer <fweimer@redhat.com>
Tue, 4 May 2021 13:52:58 +0000 (15:52 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 4 May 2021 14:03:07 +0000 (16:03 +0200)
This avoids a -Werror compilation failure due to unused local
variables.

posix/tst-execveat.c

index 53178c10d551aa4140d43cb37ddd5bc5267622b1..bc4d1aedc936b2b6f7a56748f81088b9842cebd9 100644 (file)
@@ -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)
This page took 0.043772 seconds and 5 git commands to generate.