diff mbox series

[COMMITTED] posix: Fix Hurd build failure in tst-execveat

Message ID 878s4uk1xz.fsf@oldenburg.str.redhat.com
State New
Headers show
Series [COMMITTED] posix: Fix Hurd build failure in tst-execveat | expand

Commit Message

Florian Weimer May 4, 2021, 2:28 p.m. UTC
This avoids a -Werror compilation failure due to unused local
variables.

---
 posix/tst-execveat.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

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)