If HAVE_OPENDIR but also REPLACE_FCHDIR, then errno was used without
including the proper header.
* lib/opendir.c (includes): Always include errno.h.
Reported by Tatsuro MATSUOKA.
Signed-off-by: Eric Blake <eblake@redhat.com>
+2011-09-14 Eric Blake <eblake@redhat.com>
+
+ opendir: avoid compile warning
+ * lib/opendir.c (includes): Always include errno.h.
+ Reported by Tatsuro MATSUOKA.
+
2011-09-14 Jim Meyering <meyering@redhat.com>
maint.mk: sc_tight_scope: propagate failure from sub-make
/* Specification. */
#include <dirent.h>
+#include <errno.h>
+
#if HAVE_OPENDIR
/* Override opendir(), to keep track of the open file descriptors.
#else
-# include <errno.h>
# include <stddef.h>
# include <stdlib.h>