From: Bruno Haible Date: Sun, 25 Mar 2007 19:36:17 +0000 (+0000) Subject: Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning X-Git-Tag: cvs-readonly~677 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e3078b005a9292e171b2ffd37ba6a80c1df2ba2e;p=gnulib.git Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning on AIX 5.1. --- diff --git a/ChangeLog b/ChangeLog index 74c2e0f2a..b9461d7e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-03-25 Bruno Haible + * lib/glob_.h: Include . Avoids warnings on AIX 5.1. + +2007-03-25 Bruno Haible + * lib/regexec.c (merge_state_with_log): Make static. 2007-03-25 Bruno Haible diff --git a/lib/glob_.h b/lib/glob_.h index 5d7ab718e..08cd208fc 100644 --- a/lib/glob_.h +++ b/lib/glob_.h @@ -27,6 +27,11 @@ #include +/* On some systems, such as AIX 5.1, does a "#define stat stat64". + Make sure this definition is seen before glob-libc.h defines types that + rely on 'struct stat'. */ +#include + #ifndef __BEGIN_DECLS # define __BEGIN_DECLS # define __END_DECLS