Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning
authorBruno Haible <bruno@clisp.org>
Sun, 25 Mar 2007 19:36:17 +0000 (19:36 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Mar 2007 19:36:17 +0000 (19:36 +0000)
on AIX 5.1.

ChangeLog
lib/glob_.h

index 74c2e0f..b9461d7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-03-25  Bruno Haible  <bruno@clisp.org>
 
+       * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
+
+2007-03-25  Bruno Haible  <bruno@clisp.org>
+
        * lib/regexec.c (merge_state_with_log): Make static.
 
 2007-03-25  Bruno Haible  <bruno@clisp.org>
index 5d7ab71..08cd208 100644 (file)
 
 #include <stddef.h>
 
+/* On some systems, such as AIX 5.1, <sys/stat.h> does a "#define stat stat64".
+   Make sure this definition is seen before glob-libc.h defines types that
+   rely on 'struct stat'.  */
+#include <sys/stat.h>
+
 #ifndef __BEGIN_DECLS
 # define __BEGIN_DECLS
 # define __END_DECLS