diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-06-16 15:37:52 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-06-16 18:54:26 +0200 |
commit | 8283d9ec4a2d39b3d6f06ad9e98c22a26e78317f (patch) | |
tree | 4e9df03fbd7885df7de8d739d8b451cdff6e6d54 /lib/replace/xattr.c | |
parent | bd45745b09380c1fa6d0fd32929bd298fdaa4146 (diff) | |
download | samba-8283d9ec4a2d39b3d6f06ad9e98c22a26e78317f.tar.gz samba-8283d9ec4a2d39b3d6f06ad9e98c22a26e78317f.tar.xz samba-8283d9ec4a2d39b3d6f06ad9e98c22a26e78317f.zip |
attr: Look for attr/attributes.h too.
Fixes finding of ATTR_ROOT on GNU/kFreeBSD.
Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date(master): Sat Jun 16 18:54:27 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib/replace/xattr.c')
-rw-r--r-- | lib/replace/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/xattr.c b/lib/replace/xattr.c index 07c130f9f88..8e1c989a3d3 100644 --- a/lib/replace/xattr.c +++ b/lib/replace/xattr.c @@ -252,7 +252,7 @@ static ssize_t bsd_attr_list (int type, extattr_arg arg, char *list, size_t size #endif -#if defined(HAVE_ATTR_LIST) && defined(HAVE_SYS_ATTRIBUTES_H) +#if defined(HAVE_ATTR_LIST) && (defined(HAVE_SYS_ATTRIBUTES_H) || defined(HAVE_ATTR_ATTRIBUTES_H)) static char attr_buffer[ATTR_MAX_VALUELEN]; static ssize_t irix_attr_list(const char *path, int filedes, char *list, size_t size, int flags) |