dirent: fix test failure
authorEric Blake <ebb9@byu.net>
Wed, 6 Jan 2010 21:08:15 +0000 (14:08 -0700)
committerEric Blake <ebb9@byu.net>
Thu, 7 Jan 2010 02:01:17 +0000 (19:01 -0700)
POSIX 2008 XSI requires ino_t.  But it is easier if gnulib
guarantees it always, rather than just on XSI systems.

* lib/dirent.in.h (includes): Guarantee ino_t.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/dirent.in.h

index 88ac6af..7b9dc99 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-01-06  Eric Blake  <ebb9@byu.net>
+
+       dirent: fix test failure
+       * lib/dirent.in.h (includes): Guarantee ino_t.
+       Reported by Ralf Wildenhues.
+
 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
 
        linkat, renameat: avoid bad free
index 41f54d1..b87f5dc 100644 (file)
@@ -26,6 +26,9 @@
 #ifndef _GL_DIRENT_H
 #define _GL_DIRENT_H
 
+/* Grab ino_t.  */
+#include <sys/types.h>
+
 /* The definition of GL_LINK_WARNING is copied here.  */
 
 /* The definition of _GL_ARG_NONNULL is copied here.  */