aboutsummaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorSean Burford <sburford@google.com>2016-07-19 10:27:20 +1000
committerJay Satiro <raysatiro@yahoo.com>2017-02-01 01:11:52 -0500
commit1c877a0712b7851c7f286007193668058ed2e987 (patch)
treecdb3c03281d503769756b8af62bd4172a2b37abe /CMake
parent028391df5d84d9fae3433afdee9261d565900355 (diff)
cmake: Support curl --xattr when built with cmake
- Test for and set HAVE_FSETXATTR when support for extended file attributes is present. Closes https://github.com/curl/curl/pull/1176
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CurlTests.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c
index ceff39151..bc36c8ef7 100644
--- a/CMake/CurlTests.c
+++ b/CMake/CurlTests.c
@@ -533,3 +533,19 @@ main () {
return 0;
}
#endif
+#ifdef HAVE_FSETXATTR_6
+#include <sys/xattr.h> /* header from libc, not from libattr */
+int
+main() {
+ fsetxattr(0, 0, 0, 0, 0, 0);
+ return 0;
+}
+#endif
+#ifdef HAVE_FSETXATTR_5
+#include <sys/xattr.h> /* header from libc, not from libattr */
+int
+main() {
+ fsetxattr(0, 0, 0, 0, 0);
+ return 0;
+}
+#endif