[packages/ois] - fix missing c headers for c++ files - rel 2
baggins
baggins at pld-linux.org
Fri Jun 19 21:18:31 CEST 2015
commit a63b1fe02f0f4b9058c79a5d9c3a30b15b47e038
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jun 19 21:18:07 2015 +0200
- fix missing c headers for c++ files
- rel 2
gcc.patch | 40 ++++++++++++++++++++++++++++++++++++++++
ois.spec | 4 +++-
2 files changed, 43 insertions(+), 1 deletion(-)
---
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}
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 <fcntl.h> //Needed to Open a file descriptor
+ #include <cassert>
+ #include <linux/input.h>
++#include <unistd.h>
+
+
+ #include <sstream>
+--- 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 <cstdlib>
+ #include <errno.h>
+ #include <memory.h>
++#include <unistd.h>
+
+ 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 <iostream>
+ #include <vector>
+ #include <sstream>
++#include <unistd.h>
+
+ ////////////////////////////////////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 <ios>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+
+ using namespace std;
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ois.git/commitdiff/a63b1fe02f0f4b9058c79a5d9c3a30b15b47e038
More information about the pld-cvs-commit
mailing list