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 74c2e0f2a9735e9a9f1e40c53bf988ec1009f03c..b9461d7e3f2fb4a0fdf77294d504ae869ac8eb32 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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.
index 5d7ab718e7091b394d5fc64a1ba36794142c17ba..08cd208fc84e012027ebe4295e20af4561fa342f 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