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

Florian Weimer fweimer@redhat.com
Tue May 4 14:28:56 GMT 2021


This avoids a -Werror compilation failure due to unused local
variables.

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

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)



More information about the Libc-alpha mailing list