projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix strerror on Interix.
[gnulib.git]
/
lib
/
progreloc.c
diff --git
a/lib/progreloc.c
b/lib/progreloc.c
index
e9fb647
..
edc3db6
100644
(file)
--- a/
lib/progreloc.c
+++ b/
lib/progreloc.c
@@
-27,9
+27,7
@@
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <sys/stat.h>
/* Get declaration of _NSGetExecutablePath on MacOS X 10.2 or newer. */
#include <sys/stat.h>
/* Get declaration of _NSGetExecutablePath on MacOS X 10.2 or newer. */
@@
-77,6
+75,11
@@
# define FILE_SYSTEM_PREFIX_LEN(P) 0
#endif
# 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
#undef set_program_name