diff options
author | dmitrykos <dmitrykos@neutroncode.com> | 2018-10-04 21:31:23 +0300 |
---|---|---|
committer | Sergei Nikulov <sergey.nikulov@gmail.com> | 2018-10-05 13:10:41 +0300 |
commit | 667b5721c71480b4e5dbd2f91d7668a2b92bf00b (patch) | |
tree | ff24a138a6fc45af66bff6f91c7caed12fe6bff8 /CMake | |
parent | 8a42b769a7100d8396f3b09ac0870cc9be671725 (diff) | |
download | curl-667b5721c71480b4e5dbd2f91d7668a2b92bf00b.tar.gz |
cmake: test and set missed defines during configuration
Added configuration checks for HAVE_BUILTIN_AVAILABLE and HAVE_CLOCK_GETTIME_MONOTONIC.
Closes #3097
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/CurlTests.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c index ab244ac39..9388c835b 100644 --- a/CMake/CurlTests.c +++ b/CMake/CurlTests.c @@ -549,3 +549,19 @@ main() { return 0; } #endif +#ifdef HAVE_CLOCK_GETTIME_MONOTONIC +#include <time.h> +int +main() { + struct timespec ts = {0, 0}; + clock_gettime(CLOCK_MONOTONIC, &ts); + return 0; +} +#endif +#ifdef HAVE_BUILTIN_AVAILABLE +int +main() { + if(__builtin_available(macOS 10.12, *)) {} + return 0; +} +#endif |