-AC_CHECK_HEADERS([ fcntl.h ftw.h getopt.h libgen.h limits.h sys/acl.h ])
-AC_CHECK_HEADERS([ sys/libacl.h sys/types.h unistd.h ])
+AC_CHECK_HEADERS([ fcntl.h ftw.h getopt.h libgen.h limits.h linux/xattr.h ])
+AC_CHECK_HEADERS([ sys/acl.h sys/libacl.h sys/types.h unistd.h ])
# We need openat() with O_NOFOLLOW from POSIX-2008. Without them, we
# can't operate securely; I would rather refuse to be built.
# We need openat() with O_NOFOLLOW from POSIX-2008. Without them, we
# can't operate securely; I would rather refuse to be built.