From 1c877a0712b7851c7f286007193668058ed2e987 Mon Sep 17 00:00:00 2001 From: Sean Burford Date: Tue, 19 Jul 2016 10:27:20 +1000 Subject: 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 --- CMake/CurlTests.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'CMake') 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 /* header from libc, not from libattr */ +int +main() { + fsetxattr(0, 0, 0, 0, 0, 0); + return 0; +} +#endif +#ifdef HAVE_FSETXATTR_5 +#include /* header from libc, not from libattr */ +int +main() { + fsetxattr(0, 0, 0, 0, 0); + return 0; +} +#endif -- cgit v1.2.3