X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fprogreloc.c;h=edc3db606783cadb6df111dea933f9d23cbc5be5;hb=d5d3e86d326de4aa7d661fde1ebb636f3efbffd5;hp=e9fb647058d376797362130df8da3f477794f7f2;hpb=99099106c3c1cb16ed1e91be970332fe225e278b;p=gnulib.git diff --git a/lib/progreloc.c b/lib/progreloc.c index e9fb64705..edc3db606 100644 --- a/lib/progreloc.c +++ b/lib/progreloc.c @@ -27,9 +27,7 @@ #include #include #include -#if HAVE_UNISTD_H -# include -#endif +#include #include /* Get declaration of _NSGetExecutablePath on MacOS X 10.2 or newer. */ @@ -77,6 +75,11 @@ # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif +/* The results of open() in this file are not used with fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef open +#undef close + #undef set_program_name