ois/ois-1.3-gcc-4.8.patch

44 lines
1.5 KiB
Diff

diff -ru ois-v1-3.orig/demos/FFConsoleDemo.cpp ois-v1-3/demos/FFConsoleDemo.cpp
--- ois-v1-3.orig/demos/FFConsoleDemo.cpp 2010-04-01 05:38:04.000000000 +0200
+++ ois-v1-3/demos/FFConsoleDemo.cpp 2013-11-28 10:47:41.663835972 +0100
@@ -1,5 +1,6 @@
#include "OIS.h"
+#include <unistd.h>
#include <math.h>
#include <cstdlib>
#include <iostream>
diff -ru ois-v1-3.orig/demos/OISConsole.cpp ois-v1-3/demos/OISConsole.cpp
--- ois-v1-3.orig/demos/OISConsole.cpp 2010-08-16 00:51:34.000000000 +0200
+++ ois-v1-3/demos/OISConsole.cpp 2013-11-28 10:46:58.172275224 +0100
@@ -9,6 +9,7 @@
//Advanced Usage
#include "OISForceFeedback.h"
+#include <unistd.h>
#include <iostream>
#include <vector>
#include <sstream>
diff -ru ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp ois-v1-3/src/linux/LinuxForceFeedback.cpp
--- ois-v1-3.orig/src/linux/LinuxForceFeedback.cpp 2010-04-01 05:06:55.000000000 +0200
+++ ois-v1-3/src/linux/LinuxForceFeedback.cpp 2013-11-28 10:46:36.888490190 +0100
@@ -23,6 +23,7 @@
#include "linux/LinuxForceFeedback.h"
#include "OISException.h"
+#include <unistd.h>
#include <cstdlib>
#include <errno.h>
#include <memory.h>
diff -ru ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp ois-v1-3/src/linux/LinuxJoyStickEvents.cpp
--- ois-v1-3.orig/src/linux/LinuxJoyStickEvents.cpp 2013-11-28 10:45:51.365949979 +0100
+++ ois-v1-3/src/linux/LinuxJoyStickEvents.cpp 2013-11-28 10:46:07.617785829 +0100
@@ -35,6 +35,7 @@
#include <linux/input.h>
+#include <unistd.h>
#include <sstream>
# include <iostream>
using namespace std;