diff --git a/configure.ac b/configure.ac index 22a7c90..6212779 100644 --- a/configure.ac +++ b/configure.ac @@ -109,10 +109,10 @@ AC_CACHE_CHECK([whether xattr interface takes additional options], LIBS="$LIBS $ACL_LIBS" AC_TRY_COMPILE([ #include - #if HAVE_ATTR_XATTR_H - #include - #elif HAVE_SYS_XATTR_H + #if HAVE_SYS_XATTR_H #include + #elif HAVE_ATTR_XATTR_H + #include #endif ],[ getxattr(0, 0, 0, 0, 0, 0); diff --git a/encfs/encfs.cpp b/encfs/encfs.cpp index fe6161c..f778620 100644 --- a/encfs/encfs.cpp +++ b/encfs/encfs.cpp @@ -31,10 +31,10 @@ #include #endif -#ifdef HAVE_ATTR_XATTR_H -#include -#elif HAVE_SYS_XATTR_H +#if HAVE_SYS_XATTR_H #include +#elif HAVE_ATTR_XATTR_H +#include #endif #include