Files
gentoo/dev-libs/xmlrpc-c/files/xmlrpc-c-1.64.03-use-stdbool.patch
Holger Hoffstätte 56a4d8f72d dev-libs/xmlrpc-c: add 1.64.03
- fix C23 bool misbehaviour
- rebase system-expat patch
- tests pass with gcc-15/clang-22 and both libxml2/system-expat
- remove IUSE=threads, use upstream default

Closes: https://bugs.gentoo.org/972567
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/608
Merges: https://codeberg.org/gentoo/gentoo/pulls/608
Signed-off-by: Sam James <sam@gentoo.org>
2026-06-17 06:36:20 +01:00

17 lines
387 B
Diff

Replace custom bool definitions with stdbool.h to work with C23.
--- a/lib/util/include/bool.h
+++ b/lib/util/include/bool.h
@@ -9,10 +9,7 @@
/* At least the GNU compiler defines __bool_true_false_are_defined */
#ifndef __bool_true_false_are_defined
#define __bool_true_false_are_defined
-typedef enum {
- false = 0,
- true = 1
-} bool;
+#include <stdbool.h>
#endif
#endif