From: Bruno Haible <bruno@clisp.org>
Date: Thu, 6 Apr 2023 13:06:26 +0000 (+0200)
Subject: alignalloc: Fix link error on glibc 2.15 systems.
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d04a299e3d07ef25863078fdbb064c10600b2f2a;p=gnulib.git

alignalloc: Fix link error on glibc 2.15 systems.

* lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on
glibc 2.15 systems.
---

diff --git a/ChangeLog b/ChangeLog
index 217f5a81d5..170a0d6559 100644
--- 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.
diff --git a/lib/alignalloc.h b/lib/alignalloc.h
index f47aa86dcd..eacf47880a 100644
--- a/lib/alignalloc.h
+++ b/lib/alignalloc.h
@@ -1,6 +1,6 @@
 /* aligned memory allocation
 
-   Copyright 2022 Free Software Foundation, Inc.
+   Copyright 2022-2023 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -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