From a63b1fe02f0f4b9058c79a5d9c3a30b15b47e038 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 19 Jun 2015 21:18:07 +0200 Subject: [PATCH] - fix missing c headers for c++ files - rel 2 --- gcc.patch | 40 ++++++++++++++++++++++++++++++++++++++++ ois.spec | 4 +++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 gcc.patch diff --git a/gcc.patch b/gcc.patch new file mode 100644 index 0000000..fe7ff78 --- /dev/null +++ b/gcc.patch @@ -0,0 +1,40 @@ +--- ois-v1-3/src/linux/LinuxJoyStickEvents.cpp~ 2010-07-26 03:28:41.000000000 +0200 ++++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2015-06-19 21:14:54.154198115 +0200 +@@ -33,6 +33,7 @@ + #include //Needed to Open a file descriptor + #include + #include ++#include + + + #include +--- ois-v1-3/src/linux/LinuxForceFeedback.cpp~ 2010-04-01 05:06:55.000000000 +0200 ++++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2015-06-19 21:15:36.151765707 +0200 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + + using namespace OIS; + +--- ois-v1-3/demos/OISConsole.cpp~ 2010-08-16 00:51:34.000000000 +0200 ++++ ois-v1-3/demos/OISConsole.cpp 2015-06-19 21:16:31.473579356 +0200 +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + + ////////////////////////////////////Needed Windows Headers//////////// + #if defined OIS_WIN32_PLATFORM +--- ois-v1-3/demos/FFConsoleDemo.cpp~ 2010-04-01 05:38:04.000000000 +0200 ++++ ois-v1-3/demos/FFConsoleDemo.cpp 2015-06-19 21:16:50.240050195 +0200 +@@ -7,6 +7,7 @@ + #include + #include + #include ++#include + + using namespace std; + diff --git a/ois.spec b/ois.spec index 80d7555..5877081 100644 --- a/ois.spec +++ b/ois.spec @@ -7,11 +7,12 @@ Summary: Object Oriented Input System Summary(pl.UTF-8): Zorientowany obiektowo system wejścia Name: ois Version: 1.3 -Release: 1 +Release: 2 License: zlib/libpng Group: Libraries Source0: http://downloads.sourceforge.net/wgois/%{name}_v%{file_version}.tar.gz # Source0-md5: 9697fead17eac6025151cd2e1fca1518 +Patch0: gcc.patch URL: http://ostatic.com/wgois/ BuildRequires: autoconf >= 2.50 BuildRequires: automake >= 1.6 @@ -56,6 +57,7 @@ Statyczna biblioteka OIS. %prep %setup -q -n %{name}-v%{file_version} +%patch0 -p1 %build %{__libtoolize} -- 2.44.0