- AC_DEFINE([FCHDIR_REPLACEMENT], [1],
- [Define if gnulib's fchdir() replacement is used.])
- gl_REPLACE_OPEN
- gl_REPLACE_CLOSE
- gl_REPLACE_DUP2
- dnl dup3 is already unconditionally replaced
- gl_REPLACE_DIRENT_H
+ AC_DEFINE([REPLACE_FCHDIR], [1],
+ [Define to 1 if gnulib's fchdir() replacement is used.])
+ dnl We must also replace anything that can manipulate a directory fd,
+ dnl to keep our bookkeeping up-to-date. We don't have to replace
+ dnl fstatat, since no platform has fstatat but lacks fchdir.