New module 'fchdir'.
[gnulib.git] / lib / openat-proc.c
index 87293a4..ff2fff0 100644 (file)
 #include "same-inode.h"
 #include "xalloc.h"
 
+/* The results of open() in this file are not used with fchdir,
+   therefore save some unnecessary work in fchdir.c.  */
+#undef open
+#undef close
+
 #define PROC_SELF_FD_FORMAT "/proc/self/fd/%d/%s"
 
 #define PROC_SELF_FD_NAME_SIZE_BOUND(len) \