opendir: avoid compile warning
[gnulib.git] / lib / opendir.c
index cb7f67c..06c611f 100644 (file)
@@ -19,6 +19,8 @@
 /* Specification.  */
 #include <dirent.h>
 
+#include <errno.h>
+
 #if HAVE_OPENDIR
 
 /* Override opendir(), to keep track of the open file descriptors.
@@ -26,7 +28,6 @@
 
 #else
 
-# include <errno.h>
 # include <stddef.h>
 # include <stdlib.h>