From a839ea804e5a8cf24ba061b8c04843a6c84c2e53 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 6 Apr 2023 15:06:26 +0200 Subject: [PATCH] alignalloc: Fix link error on glibc 2.15 systems. * lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on glibc 2.15 systems. --- ChangeLog | 6 ++++++ lib/alignalloc.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aa3bf508a9..090b3280ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-04-05 Bruno Haible + + alignalloc: Fix link error on glibc 2.15 systems. + * lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on + glibc 2.15 systems. + 2023-04-05 Bruno Haible doc: Add references to registered Haiku bugs. diff --git a/lib/alignalloc.h b/lib/alignalloc.h index a98b2de739..eacf47880a 100644 --- a/lib/alignalloc.h +++ b/lib/alignalloc.h @@ -35,7 +35,7 @@ _GL_INLINE_HEADER_BEGIN /* Whether aligned_alloc supports any power-of-two alignment, returns a nonnull pointer for size-zero allocations, and sets errno on failure. */ -#if 2 < __GLIBC__ + (15 <= __GLIBC_MINOR__) +#if 2 < __GLIBC__ + (16 <= __GLIBC_MINOR__) # define ALIGNALLOC_VIA_ALIGNED_ALLOC 1 #else # define ALIGNALLOC_VIA_ALIGNED_ALLOC 0 -- 2.39.5