14 lines
377 B
Diff
14 lines
377 B
Diff
|
Index: OpenCV-2.3.1/modules/highgui/src/window_QT.cpp
|
||
|
===================================================================
|
||
|
--- OpenCV-2.3.1.orig/modules/highgui/src/window_QT.cpp
|
||
|
+++ OpenCV-2.3.1/modules/highgui/src/window_QT.cpp
|
||
|
@@ -46,6 +46,8 @@
|
||
|
#ifdef _WIN32
|
||
|
#include <windows.h>
|
||
|
#define usleep Sleep
|
||
|
+#else
|
||
|
+#include <unistd.h> //for usleep
|
||
|
#endif
|
||
|
|
||
|
#ifndef M_PI
|