Use sys/xattr.h instead of attr/xattr.h by default

This commit is contained in:
Felix Janda 2014-11-01 08:22:10 +01:00
parent 8ae9282efe
commit 8034da6a59
2 changed files with 6 additions and 6 deletions

View File

@ -109,10 +109,10 @@ AC_CACHE_CHECK([whether xattr interface takes additional options],
LIBS="$LIBS $ACL_LIBS" LIBS="$LIBS $ACL_LIBS"
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
#if HAVE_ATTR_XATTR_H #if HAVE_SYS_XATTR_H
#include <attr/xattr.h>
#elif HAVE_SYS_XATTR_H
#include <sys/xattr.h> #include <sys/xattr.h>
#elif HAVE_ATTR_XATTR_H
#include <attr/xattr.h>
#endif #endif
],[ ],[
getxattr(0, 0, 0, 0, 0, 0); getxattr(0, 0, 0, 0, 0, 0);

View File

@ -31,10 +31,10 @@
#include <sys/fsuid.h> #include <sys/fsuid.h>
#endif #endif
#ifdef HAVE_ATTR_XATTR_H #if HAVE_SYS_XATTR_H
#include <attr/xattr.h>
#elif HAVE_SYS_XATTR_H
#include <sys/xattr.h> #include <sys/xattr.h>
#elif HAVE_ATTR_XATTR_H
#include <attr/xattr.h>
#endif #endif
#include <functional> #include <functional>