closedir: Avoid warning on mingw.
[gnulib.git] / lib / closedir.c
index 700d60e..0fdce18 100644 (file)
 /* Specification.  */
 #include <dirent.h>
 
+#if REPLACE_FCHDIR
+# include <unistd.h>
+#endif
+
 #if HAVE_CLOSEDIR
 
 /* Override closedir(), to keep track of the open file descriptors.