diff options
-rw-r--r-- | media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch | 14 | ||||
-rw-r--r-- | media-libs/netpbm/netpbm-11.8.1-r1.ebuild (renamed from media-libs/netpbm/netpbm-11.8.1.ebuild) | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch b/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch new file mode 100644 index 000000000000..a749ec434d31 --- /dev/null +++ b/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/943971 + +--- a/buildtools/libopt.c ++++ b/buildtools/libopt.c +@@ -89,7 +89,9 @@ + #include <stdlib.h> + #include <stdio.h> + ++#if __STDC_VERSION__ < 202311L + typedef unsigned char bool; ++#endif + #ifndef TRUE + #define TRUE (1) + #endif diff --git a/media-libs/netpbm/netpbm-11.8.1.ebuild b/media-libs/netpbm/netpbm-11.8.1-r1.ebuild index 31d10bb8169f..3626f909bb88 100644 --- a/media-libs/netpbm/netpbm-11.8.1.ebuild +++ b/media-libs/netpbm/netpbm-11.8.1-r1.ebuild @@ -59,6 +59,7 @@ PATCHES=( "${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch "${FILESDIR}"/netpbm-11.6.1-incompatible-pointer-types.patch "${FILESDIR}"/netpbm-11.7.2-lto.patch + "${FILESDIR}"/netpbm-11.8.1-fix-C23.patch ) netpbm_libtype() { |