]> Savannah Git Hosting - gnulib.git/commitdiff
alignalloc: Fix link error on glibc 2.15 systems.
authorBruno Haible <bruno@clisp.org>
Thu, 6 Apr 2023 13:06:26 +0000 (15:06 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 6 Apr 2023 13:06:26 +0000 (15:06 +0200)
* lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on
glibc 2.15 systems.

ChangeLog
lib/alignalloc.h

index aa3bf508a9113f35906810ada7466c197116658c..090b3280ad1d2590456d00ca18abc92e5810d307 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-05  Bruno Haible  <bruno@clisp.org>
+
+       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  <bruno@clisp.org>
 
        doc: Add references to registered Haiku bugs.
index a98b2de73939c2bcc3d0147d3fe4b52c6036d9bd..eacf47880a4282b724fe58635ea8962df51e2a42 100644 (file)
@@ -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