commit 3bea7a5a3ec7c0ddb26f5fa222be1dfa31f6ae89
Author: Mamoru TASAKA <mtasaka(a)fedoraproject.org>
Date: Sat Oct 12 17:44:16 2024 +0900
Add function prototype to header (-Werror=implicit-funciton-declaration)
dega-1.12-add-prototype.patch | 10 ++++++++++
dega-sdl.spec | 8 +++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/dega-1.12-add-prototype.patch b/dega-1.12-add-prototype.patch
new file mode 100644
index 0000000..47bd7a5
--- /dev/null
+++ b/dega-1.12-add-prototype.patch
@@ -0,0 +1,10 @@
+--- dega-1.12/mast/mast.h.header 2007-09-14 21:28:21.000000000 +0900
++++ dega-1.12/mast/mast.h 2024-10-12 14:26:03.568339039 +0900
+@@ -31,6 +31,7 @@ extern unsigned int MastEx; // Extra opt
+ extern int MastDrawDo; // 1 to draw image
+ int MastInit();
+ int MastExit();
++int MastLoadRom(char *Name,unsigned char **pRom,int *pRomLen);
+ int MastSetRom(unsigned char *Rom,int RomLen);
+ int MastReset();
+ int MastHardReset();
diff --git a/dega-sdl.spec b/dega-sdl.spec
index 9112ab2..849abe5 100644
--- a/dega-sdl.spec
+++ b/dega-sdl.spec
@@ -1,7 +1,7 @@
Summary: Dega is a Sega Master System emulator
Name: dega-sdl
Version: 1.12
-Release: 24%{?dist}
+Release: 25%{?dist}
License: Distributable
Group: Applications/Emulators
URL:
http://www.emulinks.de/emus/
@@ -9,6 +9,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source:
http://www.emulinks.de/emus/dega-%{version}.tar.gz
Patch0: dega-1.12-execstack.patch
Patch1: dega-1.12-Makefile.patch
+# Add function prototype to header (-Werror=implicit-funciton-declaration)
+Patch2: dega-1.12-add-prototype.patch
# This is to build only for i386/i686 on plague
ExclusiveArch: i686
BuildRequires: SDL-devel >= 1.2.0, nasm, gcc-c++
@@ -21,6 +23,7 @@ Master System / Mark III / Game Gear emulator for DOS.
%setup -q -n dega-%{version}
%patch -P0 -p1
%patch -P1 -p1
+%patch -P2 -p1
# Using Fedora OPTFLAGS
sed -i 's/^OPTFLAGS=/#OPTFLAGS=/' Makefile
@@ -42,6 +45,9 @@ rm -rf %{buildroot}
%doc README dega.txt ChangeLog
%changelog
+* Sat Oct 12 2024 Mamoru TASAKA <mtasaka(a)fedoraproject.org> - 1.12-25
+- Add function prototype to header (-Werror=implicit-funciton-declaration)
+
* Fri Aug 02 2024 RPM Fusion Release Engineering <sergiomb(a)rpmfusion.org> -
1.12-24
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild