[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: aligned_alloc: Fix test failure on OpenBSD 6.8
From: |
Bruno Haible |
Subject: |
Re: aligned_alloc: Fix test failure on OpenBSD 6.8 |
Date: |
Fri, 01 Jan 2021 23:11:37 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; ) |
> - dnl Persuade glibc <stdlib.h> to declare aligned_alloc().
> + dnl Persuade glibc and OpenBSD <stdlib.h> to declare aligned_alloc().
> AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
Oops, this needs to require gl_USE_SYSTEM_EXTENSIONS now.
And a similar problem exists for the max_align_t type.
2021-01-01 Bruno Haible <bruno@clisp.org>
stddef: Try harder to get max_align_t defined on OpenBSD.
* m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
diff --git a/m4/stddef_h.m4 b/m4/stddef_h.m4
index 18e872f..7869621 100644
--- a/m4/stddef_h.m4
+++ b/m4/stddef_h.m4
@@ -1,14 +1,19 @@
-dnl A placeholder for <stddef.h>, for platforms that have issues.
-# stddef_h.m4 serial 7
+# stddef_h.m4 serial 8
dnl Copyright (C) 2009-2021 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
+dnl A placeholder for <stddef.h>, for platforms that have issues.
+
AC_DEFUN([gl_STDDEF_H],
[
AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
AC_REQUIRE([gt_TYPE_WCHAR_T])
+
+ dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
+ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
STDDEF_H=
dnl Test whether the type max_align_t exists and whether its alignment