From 41dcb765c31306bea861dfa2e4e945c7706523de Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Feb 23 2009 14:27:08 +0000 Subject: - Fix building with gcc-4.4 --- diff --git a/openmsx-0.6.3-gcc44.patch b/openmsx-0.6.3-gcc44.patch new file mode 100644 index 0000000..e4221ab --- /dev/null +++ b/openmsx-0.6.3-gcc44.patch @@ -0,0 +1,33 @@ +diff -up openmsx-0.6.3/src/fdc/MSXtar.cc~ openmsx-0.6.3/src/fdc/MSXtar.cc +--- openmsx-0.6.3/src/fdc/MSXtar.cc~ 2007-12-09 22:09:25.000000000 +0100 ++++ openmsx-0.6.3/src/fdc/MSXtar.cc 2009-02-23 14:46:31.000000000 +0100 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff -up openmsx-0.6.3/src/ide/IDECDROM.cc~ openmsx-0.6.3/src/ide/IDECDROM.cc +--- openmsx-0.6.3/src/ide/IDECDROM.cc~ 2007-12-09 22:09:25.000000000 +0100 ++++ openmsx-0.6.3/src/ide/IDECDROM.cc 2009-02-23 14:47:01.000000000 +0100 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + + using std::string; + using std::vector; +diff -up openmsx-0.6.3/src/video/GLUtil.cc~ openmsx-0.6.3/src/video/GLUtil.cc +--- openmsx-0.6.3/src/video/GLUtil.cc~ 2007-12-09 22:09:10.000000000 +0100 ++++ openmsx-0.6.3/src/video/GLUtil.cc 2009-02-23 14:50:57.000000000 +0100 +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + #include + + #ifdef GL_VERSION_2_0 diff --git a/openmsx.spec b/openmsx.spec index 46ad70f..2c01f27 100644 --- a/openmsx.spec +++ b/openmsx.spec @@ -1,6 +1,6 @@ Name: openmsx Version: 0.6.3 -Release: 5%{?dist} +Release: 6%{?dist} Summary: An emulator for the MSX home computer system Group: Applications/Emulators License: GPL+ @@ -9,6 +9,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar. Patch0: openmsx-0.6.1-installbase.patch Patch1: openmsx-0.6.1-flavour.patch Patch2: openmsx-0.6.3-datadir.patch +Patch3: openmsx-0.6.3-gcc44.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: docbook-utils @@ -32,6 +33,7 @@ all aspects of the MSX with 100% accuracy. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 # Verbose compilation sed -i 's/@$(COMPILE_ENV)/$(COMPILE_ENV)/' build/main.mk @@ -154,6 +156,9 @@ fi %changelog +* Mon Feb 23 2009 Hans de Goede 0.6.3-6 +- Fix building with gcc-4.4 + * Mon Dec 01 2008 Ignacio Vazquez-Abrams - 0.6.3-5 - Rebuild for Python 2.6