summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-12-01 13:50:42 (GMT)
committerBrad King <brad.king@kitware.com>2023-12-01 13:52:33 (GMT)
commit838bdb4b3776e748242aebb497fd29753e8736f9 (patch)
tree12759dabc3a541c7bd7945d1f67ebaeba32c742a
parent33e9e3438cb1045f378394e0847879e27584b00a (diff)
downloadCMake-838bdb4b3776e748242aebb497fd29753e8736f9.zip
CMake-838bdb4b3776e748242aebb497fd29753e8736f9.tar.gz
CMake-838bdb4b3776e748242aebb497fd29753e8736f9.tar.bz2
librhash: aligned_alloc is not available on Solaris
-rw-r--r--Utilities/cmlibrhash/librhash/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmlibrhash/librhash/util.h b/Utilities/cmlibrhash/librhash/util.h
index 6dd4c4d..148db39 100644
--- a/Utilities/cmlibrhash/librhash/util.h
+++ b/Utilities/cmlibrhash/librhash/util.h
@@ -42,7 +42,7 @@ extern "C" {
# define rhash_aligned_free(ptr) _aligned_free(ptr)
#elif !defined(NO_STDC_ALIGNED_ALLOC) && (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) \
- && !defined(__APPLE__) && !defined(__HAIKU__) \
+ && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__sun) \
&& (!defined(__ANDROID_API__) || __ANDROID_API__ >= 28)
# define HAS_STDC_ALIGNED_ALLOC