X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fprogreloc.c;h=edc3db606783cadb6df111dea933f9d23cbc5be5;hb=d5d3e86d326de4aa7d661fde1ebb636f3efbffd5;hp=6986e1edb035809f38b2290fc68f27cfa563134b;hpb=318cd4fb068ae9332577a181f8cbb51a457a0bce;p=gnulib.git diff --git a/lib/progreloc.c b/lib/progreloc.c index 6986e1edb..edc3db606 100644 --- a/lib/progreloc.c +++ b/lib/progreloc.c @@ -17,9 +17,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "progname.h" @@ -29,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. */ @@ -79,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