From 606886c037f23d2c50e7e90a8fa8256cacd24396 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 6 May 2007 13:44:47 +0000 Subject: kdepimpi: fix the QMutexLocker build fix - patch to provide the QMutexLocker implementation. --- packages/kdepimpi/files/qt-mt.patch | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 packages/kdepimpi/files/qt-mt.patch (limited to 'packages/kdepimpi/files') diff --git a/packages/kdepimpi/files/qt-mt.patch b/packages/kdepimpi/files/qt-mt.patch new file mode 100644 index 0000000000..c7e3f9d88a --- /dev/null +++ b/packages/kdepimpi/files/qt-mt.patch @@ -0,0 +1,41 @@ +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 ++#include + #endif //QT_THREAD_SUPPORT + + #include -- cgit v1.2.3