opencv/opencv-gcc47.patch

14 lines
377 B
Diff
Raw Normal View History

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