]> 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>
Sat, 8 Apr 2023 10:47:14 +0000 (12:47 +0200)
* lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on
glibc 2.15 systems.

ChangeLog
lib/alignalloc.h

index 2127422bdd4cfb45e134c4718c1efb6ba8367150..c039d2f0666c45880b99cda655aabb99f62b580e 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>
 
        random_r: Fix compilation error on Haiku.
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