Mercurial > hg > octave-lojdl > gnulib-hg
changeset 8541:a1af5a68e2e7
Make sure 'struct stat' is defined before glob-libc.h uses it. Fixes a warning
on AIX 5.1.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 25 Mar 2007 19:36:17 +0000 |
parents | ea5d70262310 |
children | 22c2e0092f64 |
files | ChangeLog lib/glob_.h |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/lib/glob_.h +++ b/lib/glob_.h @@ -27,6 +27,11 @@ #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