From e3078b005a9292e171b2ffd37ba6a80c1df2ba2e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 25 Mar 2007 19:36:17 +0000 Subject: [PATCH] Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning on AIX 5.1. --- ChangeLog | 4 ++++ lib/glob_.h | 5 +++++ 2 files changed, 9 insertions(+) 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 -- 2.11.0