Mercurial > hg > octave-jordi > gnulib-hg
changeset 14906:3cbb6286362c
file-set.h: guard __attibute__ use, now that it's not always defined
* lib/file-set.h (record_file): Use __attribute__ only with compiler
versions that support it. This fixes a coreutils build failure with
/bin/cc on HP-UX 11.31.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 13 Jun 2011 11:19:42 +0200 |
parents | a9b67d6b93df |
children | df9e4c8da88b |
files | ChangeLog lib/file-set.h |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-06-13 Bruno Haible <bruno@clisp.org> + + file-set.h: guard __attibute__ use, now that it's not always defined + * lib/file-set.h (record_file): Use __attribute__ only with compiler + versions that support it. This fixes a coreutils build failure with + /bin/cc on HP-UX 11.31. + 2011-06-12 Bruno Haible <bruno@clisp.org> acl: Add support for HP-UX >= 11.11 JFS ACLs.
--- a/lib/file-set.h +++ b/lib/file-set.h @@ -6,7 +6,10 @@ extern void record_file (Hash_table *ht, char const *file, struct stat const *stats) - __attribute__ ((nonnull (2, 3))); +#if defined __GNUC__ && ((__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3) + __attribute__ ((nonnull (2, 3))) +#endif +; extern bool seen_file (Hash_table const *ht, char const *file, struct stat const *stats);