diff options
author | Jeremy Allison <jra@samba.org> | 2004-01-05 21:01:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-01-05 21:01:06 +0000 |
commit | 0aba157e7c6c8f6078950871ab5e3a0f89440229 (patch) | |
tree | 2393be3c3f250d2f5024461523ea4c86f494ddb7 | |
parent | a9f8b0dccba776e43814971b6dc8901b1b719186 (diff) | |
download | samba-0aba157e7c6c8f6078950871ab5e3a0f89440229.tar.gz samba-0aba157e7c6c8f6078950871ab5e3a0f89440229.tar.bz2 samba-0aba157e7c6c8f6078950871ab5e3a0f89440229.zip |
Fix from James Flemer <jflemer@uvm.edu> to make HAVE_ATTR_LIST linked to
HAVE_SYS_ATTRIBUTES_H to fix AIX compile.
Jeremy.
(This used to be commit 1d90cc2034c023755981a07a49c3d9958b60fb74)
-rw-r--r-- | source3/lib/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c index 2e95efec79..577f0b9a20 100644 --- a/source3/lib/system.c +++ b/source3/lib/system.c @@ -1321,7 +1321,7 @@ ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size) #endif } -#if defined(HAVE_ATTR_LIST) +#if defined(HAVE_ATTR_LIST) && defined(HAVE_SYS_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) @@ -1393,7 +1393,7 @@ ssize_t sys_listxattr (const char *path, char *list, size_t size) { #if defined(HAVE_LISTXATTR) return listxattr(path, list, size); -#elif defined(HAVE_ATTR_LIST) +#elif defined(HAVE_ATTR_LIST) && defined(HAVE_SYS_ATTRIBUTES_H) return irix_attr_list(path, 0, list, size, 0); #else errno = ENOSYS; @@ -1405,7 +1405,7 @@ ssize_t sys_llistxattr (const char *path, char *list, size_t size) { #if defined(HAVE_LLISTXATTR) return llistxattr(path, list, size); -#elif defined(HAVE_ATTR_LIST) +#elif defined(HAVE_ATTR_LIST) && defined(HAVE_SYS_ATTRIBUTES_H) return irix_attr_list(path, 0, list, size, ATTR_DONTFOLLOW); #else errno = ENOSYS; |