void-packages/srcpkgs/qt/patches/qt-clucene-timeb.patch

18 lines
368 B
Diff

--- a/src/3rdparty/clucene/src/CLucene/util/Misc.cpp.orig
+++ b/src/3rdparty/clucene/src/CLucene/util/Misc.cpp
@@ -20,11 +20,11 @@
# endif
#endif
-#ifdef _CL_HAVE_SYS_TIMEB_H
+#ifndef UNDER_CE
+#ifdef _defined(_CLCOMPILER_MSVC) || defined(__MINGW32__) || defined(__BORLANDC__)
# include <sys/timeb.h>
#endif
-
-#ifdef UNDER_CE
+#else
#include <QTime>
#endif