6d2b25a59f
Fix build with gcc 4.7 - Please work with upstream to resolve it in upstream code base. There is also a chance that a newer version of the package might have this fixed already. (forwarded request 109787 from dimstar) OBS-URL: https://build.opensuse.org/request/show/109883 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=30
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
|