mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
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
This commit is contained in:
parent
bd45745b09
commit
8283d9ec4a
@ -114,6 +114,8 @@
|
||||
|
||||
#if HAVE_SYS_ATTRIBUTES_H
|
||||
#include <sys/attributes.h>
|
||||
#elif HAVE_ATTR_ATTRIBUTES_H
|
||||
#include <attr/attributes.h>
|
||||
#endif
|
||||
|
||||
/* mutually exclusive (SuSE 8.2) */
|
||||
|
@ -43,7 +43,7 @@ def configure(conf):
|
||||
conf.CHECK_HEADERS('fcntl.h fnmatch.h glob.h history.h krb5.h langinfo.h')
|
||||
conf.CHECK_HEADERS('libaio.h locale.h ndir.h pwd.h')
|
||||
conf.CHECK_HEADERS('shadow.h sys/acl.h')
|
||||
conf.CHECK_HEADERS('sys/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
|
||||
conf.CHECK_HEADERS('sys/attributes.h attr/attributes.h sys/capability.h sys/dir.h sys/epoll.h')
|
||||
conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h sys/fs/vx/quota.h')
|
||||
conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
|
||||
conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h')
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user