Hash :
258036d8
Author :
Date :
2011-06-13T11:19:42
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.
#include <sys/types.h>
#include <sys/stat.h>
#include <stdbool.h>
#include "hash.h"
extern void record_file (Hash_table *ht, char const *file,
struct stat const *stats)
#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);