summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-01-05 21:01:08 +0000
committerJeremy Allison <jra@samba.org>2004-01-05 21:01:08 +0000
commitdcbb8bd1827fc45fd6fe5c33eb2a1fa1761f2625 (patch)
treec21aae9aa852b6bcd54fd295c3660dadf7d9a6cd /source3
parent38e0b1e87891b73e46b97f79d9822f1cf3e7269d (diff)
downloadsamba-dcbb8bd1827fc45fd6fe5c33eb2a1fa1761f2625.tar.gz
samba-dcbb8bd1827fc45fd6fe5c33eb2a1fa1761f2625.tar.bz2
samba-dcbb8bd1827fc45fd6fe5c33eb2a1fa1761f2625.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 1b1c216122e4dcf40e4ccaea528a7775521fa618)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/system.c6
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;