From 628a80773060e62b4f7823e6591d3bf068a074d8 Mon Sep 17 00:00:00 2001 From: Dilshod Mukhtarov Date: Mon, 9 Sep 2024 16:02:34 +0400 Subject: [PATCH] librhash: aligned_alloc is not available with glibc < 2.16 Revise the version check from commit e14300816b (librhash: aligned_alloc is not available with glibc < 2.15, 2024-02-14, v3.29.0-rc2~30^2). Issue: #25679 --- Utilities/cmlibrhash/librhash/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/cmlibrhash/librhash/util.h b/Utilities/cmlibrhash/librhash/util.h index a0a0674e82..4da1be69fa 100644 --- a/Utilities/cmlibrhash/librhash/util.h +++ b/Utilities/cmlibrhash/librhash/util.h @@ -44,7 +44,7 @@ extern "C" { # define rhash_aligned_free(ptr) _aligned_free(ptr) #elif !defined(NO_STDC_ALIGNED_ALLOC) && (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) \ - && !(defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 15))) \ + && !(defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 16))) \ && !(defined(__ibmxl__) && defined(__clang__) && defined(__linux__)) \ && !defined(__APPLE__) && !defined(__HAIKU__) && !defined(__sun) \ && (!defined(__ANDROID_API__) || __ANDROID_API__ >= 28)