summaryrefslogtreecommitdiff
path: root/community/ois/ois-1.3-gcc47.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ois/ois-1.3-gcc47.patch')
-rw-r--r--community/ois/ois-1.3-gcc47.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/ois/ois-1.3-gcc47.patch b/community/ois/ois-1.3-gcc47.patch
new file mode 100644
index 000000000..f77c741c7
--- /dev/null
+++ b/community/ois/ois-1.3-gcc47.patch
@@ -0,0 +1,49 @@
+--- ois-v1-3.orig/demos/FFConsoleDemo.cpp 2010-03-31 22:38:04.000000000 -0500
++++ ois-v1-3/demos/FFConsoleDemo.cpp 2012-12-24 00:33:49.240616817 -0500
+@@ -7,6 +7,7 @@
+ #include <ios>
+ #include <sstream>
+ #include <vector>
++#include <unistd.h>
+
+ using namespace std;
+
+--- ois-v1-3.orig/demos/OISConsole.cpp 2010-08-15 17:51:34.000000000 -0500
++++ ois-v1-3/demos/OISConsole.cpp 2012-12-24 00:44:27.697240229 -0500
+@@ -12,6 +12,7 @@
+ #include <iostream>
+ #include <vector>
+ #include <sstream>
++#include <unistd.h>
+
+ ////////////////////////////////////Needed Windows Headers////////////
+ #if defined OIS_WIN32_PLATFORM
+@@ -77,7 +78,7 @@
+ }
+ bool keyReleased( const KeyEvent &arg ) {
+ if( arg.key == KC_ESCAPE || arg.key == KC_Q )
+- appRunning = false;
++ appRunning = false;
+ std::cout << "KeyReleased {" << ((Keyboard*)(arg.device))->getAsString(arg.key) << "}\n";
+ return true;
+ }
+--- ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp 2010-07-25 20:28:41.000000000 -0500
++++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2012-12-24 00:36:18.360998563 -0500
+@@ -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.orig/src/linux/LinuxForceFeedback.cpp 2010-03-31 22:06:55.000000000 -0500
++++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2012-12-24 00:36:54.023723000 -0500
+@@ -26,6 +26,7 @@
+ #include <cstdlib>
+ #include <errno.h>
+ #include <memory.h>
++#include <unistd.h>
+
+ using namespace OIS;
+