-mautoupdate
[gnulib.git] / modules / fchdir
index 7cb47dd..8a1cd1c 100644 (file)
@@ -3,17 +3,22 @@ fchdir() function: change current directory, given an open file descriptor.
 
 Files:
 lib/fchdir.c
-lib/dirent.in.h
 m4/fchdir.m4
 
 Depends-on:
 canonicalize-lgpl
+close
+dirent
 dirfd
 dup2
-fcntl
+fcntl-h
 include_next
+malloc-posix
 open
-strdup
+realloc-posix
+stdbool
+strdup-posix
+sys_stat
 unistd
 
 configure.ac:
@@ -21,20 +26,6 @@ gl_FUNC_FCHDIR
 gl_UNISTD_MODULE_INDICATOR([fchdir])
 
 Makefile.am:
-BUILT_SOURCES += $(DIRENT_H)
-
-# We need the following in order to create <dirent.h> when the system
-# doesn't have one that works with the given compiler.
-dirent.h: dirent.in.h
-       rm -f $@-t $@
-       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
-             -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
-             -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
-             < $(srcdir)/dirent.in.h; \
-       } > $@-t
-       mv $@-t $@
-MOSTLYCLEANFILES += dirent.h dirent.h-t
 
 Include:
 #include <unistd.h>