aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-qtopia/kdepimpi/files/qt-mt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qtopia/kdepimpi/files/qt-mt.patch')
-rw-r--r--recipes-qtopia/kdepimpi/files/qt-mt.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-qtopia/kdepimpi/files/qt-mt.patch b/recipes-qtopia/kdepimpi/files/qt-mt.patch
new file mode 100644
index 0000000..f0a5721
--- /dev/null
+++ b/recipes-qtopia/kdepimpi/files/qt-mt.patch
@@ -0,0 +1,45 @@
+upstream: http://sourceforge.net/tracker/index.php?func=detail&aid=1898924&group_id=104103&atid=636951
+status: upstream is pretty dead
+
+diff --git
+a/microkde/kresources/resource.cpp b/microkde/kresources/resource.cpp
+index cccd485..65d82e2 100644
+--- a/microkde/kresources/resource.cpp
++++ b/microkde/kresources/resource.cpp
+@@ -29,6 +29,23 @@
+
+ using namespace KRES;
+
++namespace fixme {
++ class QMutexLocker {
++ public:
++ QMutexLocker(QMutex *m) : mtx(m) {
++ if(mtx) mtx->lock();
++ }
++ ~QMutexLocker() {
++ if(mtx) mtx->unlock();
++ }
++
++ QMutex *mutex() const { return mtx; }
++ private:
++ QMutex *mtx;
++ };
++}
++using namespace fixme;
++
+ class Resource::ResourcePrivate
+ {
+ public:
+diff --git a/microkde/kresources/resource.h b/microkde/kresources/resource.h
+index ed5af96..997fff6 100644
+--- a/microkde/kresources/resource.h
++++ b/microkde/kresources/resource.h
+@@ -25,7 +25,7 @@
+
+ //US
+ #ifdef QT_THREAD_SUPPORT
+-#include <qmutex.h>
++#include <qthread.h>
+ #endif //QT_THREAD_SUPPORT
+
+ #include <qvaluelist.h>