commit: 7595a827ef81dd90e69c96a114a369502dd17fd2 Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com> AuthorDate: Sat Sep 27 12:36:55 2025 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Sun Sep 28 14:31:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7595a827
app-emulation/dosemu: fix compilation with gcc-15 Closes: https://bugs.gentoo.org/944235 Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/43399 Closes: https://github.com/gentoo/gentoo/pull/43399 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> .../dosemu/dosemu-1.4.1_pre20130107-r7.ebuild | 1 + .../files/dosemu-1.4.1_pre20130107-gcc-15.patch | 26 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r7.ebuild b/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r7.ebuild index 7ed9b0ac88c5..f9c4955b5508 100644 --- a/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r7.ebuild +++ b/app-emulation/dosemu/dosemu-1.4.1_pre20130107-r7.ebuild @@ -58,6 +58,7 @@ PATCHES=( "${FILESDIR}"/${P}-nm.patch "${FILESDIR}"/${P}-pcm_write_interleaved-incompatiible-pointer-type.patch "${FILESDIR}"/${P}-gcc10-const.patch + "${FILESDIR}"/${P}-gcc-15.patch ) pkg_pretend() { diff --git a/app-emulation/dosemu/files/dosemu-1.4.1_pre20130107-gcc-15.patch b/app-emulation/dosemu/files/dosemu-1.4.1_pre20130107-gcc-15.patch new file mode 100644 index 000000000000..f611076495df --- /dev/null +++ b/app-emulation/dosemu/files/dosemu-1.4.1_pre20130107-gcc-15.patch @@ -0,0 +1,26 @@ +Bug: https://bugs.gentoo.org/944235 +--- a/src/arch/linux/dosext/sound/midid/midid.h ++++ b/src/arch/linux/dosext/sound/midid/midid.h +@@ -8,7 +8,8 @@ + #define _MIDID_H + + typedef unsigned char byte; +-typedef enum {FALSE, TRUE} bool; ++#include <stdbool.h> ++enum {FALSE, TRUE}; + typedef enum {EMUMODE_MT32, EMUMODE_GM} Emumode; + + /* Configuration */ +--- a/src/base/init/parser.y.in ++++ b/src/base/init/parser.y.in +@@ -92,8 +92,8 @@ int dexe_running = 0; + static int dexe_forbid_disk = 1; + char own_hostname[128]; + +-static struct printer nullptr; +-static struct printer *pptr = &nullptr; ++static struct printer null_ptr; ++static struct printer *pptr = &null_ptr; + static int c_printers = 0; + + static int ports_permission = IO_RDWR;
