opencv/opencv-gcc47.patch
Stephan Kulow 6d2b25a59f Accepting request 109883 from KDE:Distro:Factory
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
2012-03-20 10:30:49 +00:00

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