From: Florian Weimer Date: Tue, 4 May 2021 13:52:58 +0000 (+0200) Subject: posix: Fix Hurd build failure in tst-execveat X-Git-Tag: glibc-2.34~507 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c71177309cc59788c2288c6033c9dbbd23f02c3;p=thirdparty%2Fglibc.git posix: Fix Hurd build failure in tst-execveat This avoids a -Werror compilation failure due to unused local variables. --- diff --git a/posix/tst-execveat.c b/posix/tst-execveat.c index 53178c10d55..bc4d1aedc93 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)