diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-01-27 00:10:57 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-01-27 00:10:57 +0300 |
commit | 22999868937be8407040637374728a5cdac94c0b (patch) | |
tree | f1bbd2c7ca9bf87d6de761e83bdccb0eef914c24 | |
parent | 537839fd7157f6e8e91c3f5099df7ba9c8b53fcf (diff) | |
download | attr-22999868937be8407040637374728a5cdac94c0b.tar.gz |
Test for features.h
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | include/xattr.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in index b966d0e..dd29f97 100644 --- a/configure.in +++ b/configure.in @@ -45,4 +45,6 @@ AC_C_CONST AC_TYPE_MODE_T AC_FUNC_ALLOCA +AC_CHECK_HEADERS([features.h]) + AC_OUTPUT(include/builddefs) diff --git a/include/xattr.h b/include/xattr.h index 070d7c5..3256c77 100644 --- a/include/xattr.h +++ b/include/xattr.h @@ -20,7 +20,9 @@ #ifndef __XATTR_H__ #define __XATTR_H__ +#if HAVE_FEATURES_H #include <features.h> +#endif #include <errno.h> #ifndef ENOATTR |