2 Commits

Author SHA256 Message Date
5cbe8ac9c9 Accepting request 1284366 from Emulators
- added patches
  build with gcc15
  + dosemu-gcc15.patch (forwarded request 1284358 from pgajdos)

OBS-URL: https://build.opensuse.org/request/show/1284366
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dosemu?expand=0&rev=38
2025-06-11 14:21:26 +00:00
4347afb559 Accepting request 1284358 from home:pgajdos
- added patches
  build with gcc15
  + dosemu-gcc15.patch

OBS-URL: https://build.opensuse.org/request/show/1284358
OBS-URL: https://build.opensuse.org/package/show/Emulators/dosemu?expand=0&rev=39
2025-06-10 08:01:23 +00:00
3 changed files with 41 additions and 0 deletions

32
dosemu-gcc15.patch Normal file
View File

@@ -0,0 +1,32 @@
Index: dosemu-1.4.0.1/src/arch/linux/dosext/sound/midid/midid.h
===================================================================
--- dosemu-1.4.0.1.orig/src/arch/linux/dosext/sound/midid/midid.h
+++ dosemu-1.4.0.1/src/arch/linux/dosext/sound/midid/midid.h
@@ -8,7 +8,12 @@
#define _MIDID_H
typedef unsigned char byte;
+#if __STDC_VERSION__ < 202311L
typedef enum {FALSE, TRUE} bool;
+#else
+#define FALSE 0
+#define TRUE 1
+#endif
typedef enum {EMUMODE_MT32, EMUMODE_GM} Emumode;
/* Configuration */
Index: dosemu-1.4.0.1/src/base/init/parser.y.in
===================================================================
--- dosemu-1.4.0.1.orig/src/base/init/parser.y.in
+++ dosemu-1.4.0.1/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;

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 10 07:54:19 UTC 2025 - pgajdos@suse.com
- added patches
build with gcc15
+ dosemu-gcc15.patch
-------------------------------------------------------------------
Mon Feb 26 07:49:42 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -31,6 +31,8 @@ Patch4: dosemu-skip-glibc-test.patch
# PATCH-FIX-UPSTREAM https://github.com/stsp/dosemu2/pull/386 https://github.com/stsp/dosemu2/commit/8d7ab25daf6f2d8ca09e1598fd11de2d8460255e
Patch5: reproducible.patch
Patch6: dosemu-LTO-fix.patch
# build with gcc15
Patch7: dosemu-gcc15.patch
BuildRequires: bdftopcf
BuildRequires: bison
BuildRequires: flex