diff options
author | Stephan Hoffmann <sho@relinux.de> | 2012-12-02 02:55:49 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-12-02 07:48:18 -0800 |
commit | 4a4b0bdd0753fd039d2d3992eb85ea2e118dcbf4 (patch) | |
tree | 1e3201dea873543747553ec9b0c96868c6602bab /package/qtuio | |
parent | 8a46d4bf1fe81dc60aca8795d9e2c69a9c252e37 (diff) | |
download | buildroot-novena-4a4b0bdd0753fd039d2d3992eb85ea2e118dcbf4.tar.gz buildroot-novena-4a4b0bdd0753fd039d2d3992eb85ea2e118dcbf4.zip |
qtuio: fix build issue because of missing include
TuioServer.cpp uses usleep but did not include <unistd.h>. This
patch adds the missing #include. This issue has been reported
upstream.
Signed-off-by: Stephan Hoffmann <sho@relinux.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/qtuio')
-rw-r--r-- | package/qtuio/qtuio-TuioServer.cpp-add-missing-include.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/qtuio/qtuio-TuioServer.cpp-add-missing-include.patch b/package/qtuio/qtuio-TuioServer.cpp-add-missing-include.patch new file mode 100644 index 000000000..99337026d --- /dev/null +++ b/package/qtuio/qtuio-TuioServer.cpp-add-missing-include.patch @@ -0,0 +1,28 @@ +From 4dd7cad8c95484a882eaa2aeaa74595a3dd93a07 Mon Sep 17 00:00:00 2001 +From: Stephan Hoffmann <sho@relinux.de> +Date: Sun, 2 Dec 2012 13:36:41 +0100 +Subject: [PATCH] TuioServer.cpp: add missing include + +If usleep() is used the header <unistd.h> has to be included + +Signed-off-by: Stephan Hoffmann <sho@relinux.de> +--- + src/3rdparty/tuio/TuioServer.cpp | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/src/3rdparty/tuio/TuioServer.cpp b/src/3rdparty/tuio/TuioServer.cpp +index f17bef9..851144c 100644 +--- a/src/3rdparty/tuio/TuioServer.cpp ++++ b/src/3rdparty/tuio/TuioServer.cpp +@@ -25,6 +25,8 @@ using namespace TUIO; + using namespace osc; + + #ifndef WIN32 ++#include <unistd.h> ++ + static void* ThreadFunc( void* obj ) + #else + static DWORD WINAPI ThreadFunc( LPVOID obj ) +-- +1.7.0.4 + |