--- /dev/null
+--- 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
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
%prep
%setup -q -n %{name}-v%{file_version}
+%patch0 -p1
%build
%{__libtoolize}