+2011-01-11 Jim Meyering <meyering@redhat.com>
+
+ save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
+ There is no need to work around the lack of the fchdir function,
+ since gnulib can now provide a replacement when required.
+ * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
+ * modules/save-cwd (Depends-on): Add fchdir.
+
2011-01-11 Paul Eggert <eggert@cs.ucla.edu>
openat, save-cwd: avoid xmalloc
# define GNULIB_FCNTL_SAFER 0
#endif
-/* On systems without the fchdir function (WOE), pretend that open
- always returns -1 so that save_cwd resorts to using xgetcwd.
- Since chdir_long requires fchdir, use chdir instead. */
-#if !HAVE_FCHDIR
-# undef open
-# define open(File, Flags) (-1)
-# undef fchdir
-# define fchdir(Fd) (abort (), -1)
-# undef chdir_long
-# define chdir_long(Dir) chdir (Dir)
-#endif
-
/* Record the location of the current working directory in CWD so that
the program may change to other directories and later use restore_cwd
to return to the recorded location. This function may allocate