repo/gentoo:master commit in: net-libs/ldns/files/
"Marc Schiffbauer" <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1787152230.bcf95ecec19feab0d39ab30e066eaa3991b3ffe7.mschiff@gentoo> |
commit: bcf95ecec19feab0d39ab30e066eaa3991b3ffe7 Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Thu Aug 13 02:16:47 2026 +0000 Commit: Marc Schiffbauer <mschiff <AT> gentoo <DOT> org> CommitDate: Wed Aug 19 15:10:30 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcf95ece net-libs/ldns: skip definition of _Bool on C99 or newer glibc 2.43 introduced the C23 variadic assert implementation. With _GNU_SOURCE, assert.h declares extern _Bool __assert_single_arg(_Bool) even when compiling in gnu17 mode. ldns later attempts to redefine _Bool for pre-C99 compatibility, causing build failures when compiling in c17 or gnu17 mode with _GNU_SOURCE. Closes: https://bugs.gentoo.org/980828 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/1661 Merges: https://codeberg.org/gentoo/gentoo/pulls/1661 Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org> net-libs/ldns/files/ldns-1.9.0-std23-bool.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/net-libs/ldns/files/ldns-1.9.0-std23-bool.patch b/net-libs/ldns/files/ldns-1.9.0-std23-bool.patch index 264e6f8e4709..be55db9f5e16 100644 --- a/net-libs/ldns/files/ldns-1.9.0-std23-bool.patch +++ b/net-libs/ldns/files/ldns-1.9.0-std23-bool.patch @@ -16,3 +16,12 @@ From: Petr Menšík <[email protected]> #ifndef __bool_true_false_are_defined # ifdef HAVE_STDBOOL_H # include <stdbool.h> +@@ -47,6 +51,8 @@ + # ifndef HAVE__BOOL + # ifdef __cplusplus + typedef bool _Bool; ++# elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L ++/* _Bool is a built-in keyword since C99; no macro definition needed. */ + # else + # define _Bool signed char + # endif