changeset 12588:fa453b6caad7

dirent: fix test failure 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>
author Eric Blake <ebb9@byu.net>
date Wed, 06 Jan 2010 14:08:15 -0700
parents 371ac5f7884e
children 20fedb8b8176
files ChangeLog lib/dirent.in.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/dirent.in.h
+++ b/lib/dirent.in.h
@@ -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.  */