diff options
author | Eric Blake <eblake@redhat.com> | 2011-09-14 08:19:35 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2011-09-14 08:19:35 -0600 |
commit | 6c9a77897ffc9323910cfdb25bf32dae44adbb53 (patch) | |
tree | d771b82375a0d93867c5664253331c07a4e5e6d0 /lib/opendir.c | |
parent | e2c54cb6998369800c2a18df71bb4d0253e472ec (diff) | |
download | gnulib-6c9a77897ffc9323910cfdb25bf32dae44adbb53.tar.gz |
opendir: avoid compile warning
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>
Diffstat (limited to 'lib/opendir.c')
-rw-r--r-- | lib/opendir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/opendir.c b/lib/opendir.c index cb7f67c101..06c611f2e1 100644 --- a/lib/opendir.c +++ b/lib/opendir.c @@ -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> |