X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=lib%2Fdup-safer.c;h=7b12b615ca08ffabef1213bbe6769c0e4fdeea04;hb=013796abf4c6be0bd130f541c0ece156156239c3;hp=d0606eeb4cef6b83429858d7618a70dff992ad2f;hpb=ce8afb6db89e58713e1758c1805abb5315b570ae;p=debian%2Fgzip diff --git a/lib/dup-safer.c b/lib/dup-safer.c index d0606ee..7b12b61 100644 --- a/lib/dup-safer.c +++ b/lib/dup-safer.c @@ -35,7 +35,7 @@ int dup_safer (int fd) { -#ifdef F_DUPFD +#if defined F_DUPFD && !defined FCHDIR_REPLACEMENT return fcntl (fd, F_DUPFD, STDERR_FILENO + 1); #else /* fd_safer calls us back, but eventually the recursion unwinds and