]> git.pld-linux.org Git - packages/ois.git/commitdiff
- fix missing c headers for c++ files master auto/th/ois-1.3-2
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 19 Jun 2015 19:18:07 +0000 (21:18 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Fri, 19 Jun 2015 19:18:07 +0000 (21:18 +0200)
- rel 2

gcc.patch [new file with mode: 0644]
ois.spec

diff --git a/gcc.patch b/gcc.patch
new file mode 100644 (file)
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\r
+ #include <cassert>    \r
+ #include <linux/input.h>\r
++#include <unistd.h>\r
\r
\r
+ #include <sstream>\r
+--- 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>\r
+ #include <errno.h>\r
+ #include <memory.h>\r
++#include <unistd.h>\r
\r
+ using namespace OIS;\r
\r
+--- 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>\r
+ #include <vector>\r
+ #include <sstream>\r
++#include <unistd.h>\r
\r
+ ////////////////////////////////////Needed Windows Headers////////////\r
+ #if defined OIS_WIN32_PLATFORM\r
+--- 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>\r
+ #include <sstream>\r
+ #include <vector>\r
++#include <unistd.h>\r
\r
+ using namespace std;\r
\r
index 80d75551235c7feeeae9ec8fc50158ef34752e32..587708172ba92cd62efad2753385842fb23ba1ef 100644 (file)
--- 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}
This page took 0.078494 seconds and 4 git commands to generate.