commit:     8eb98e9da85a35585e2664ace193748265a58d6d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 21 10:32:23 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 21 10:32:23 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eb98e9d

media-libs/libxmi: fix GCC 15 patch for < C23

We need <stdbool.h> to get `bool` with < C23.

Bug: https://bugs.gentoo.org/944450
Closes: https://bugs.gentoo.org/951707
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/libxmi/files/libxmi-1.3-gcc15.patch | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/media-libs/libxmi/files/libxmi-1.3-gcc15.patch 
b/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
index a78226eb108f..f4d63a139196 100644
--- a/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
+++ b/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
@@ -1,12 +1,12 @@
-https://bugs.gentoo.org/944450
-
+https://bugs.gentoo.org/944450 (and https://bugs.gentoo.org/951707)
 --- a/sys-defines.h
 +++ b/sys-defines.h
-@@ -169,7 +169,6 @@ extern __C_LINKAGE void free (void * ptr);
+@@ -169,7 +169,7 @@ extern __C_LINKAGE void free (void * ptr);
  #ifndef __cplusplus
  #ifndef HAVE_BOOL_IN_CC
  #ifdef __STDC__
 -typedef enum { false = 0, true = 1 } bool;
++#include <stdbool.h>
  #else  /* not __STDC__, do things the old-fashioned way */
  typedef int bool;
  #define false 0

Reply via email to