]> 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 11:05:31 +0000 (13:05 +0200)
* lib/alignalloc.h (ALIGNALLOC_VIA_ALIGNED_ALLOC): Set to 0 on
glibc 2.15 systems.

ChangeLog
lib/alignalloc.h

index 217f5a81d5a8fbc1f0ae16ec721db8320df0ceb9..170a0d6559ee2d72bba84126736b75af6d94f70b 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 f47aa86dcde50548caa3da0f4bfcd7ea4e71984e..eacf47880a4282b724fe58635ea8962df51e2a42 100644 (file)
@@ -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