aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/fix-malloc-trim.patch
blob: e699c3021ec502df155d4d75992bcf9216099844 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 248fa8efef..4c27f65625 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -782,7 +782,7 @@ int main(int argc, char **argv)
     // shutdown plugin manager on the exit
     QObject::connect(&app, &QCoreApplication::aboutToQuit, &pluginManager, &PluginManager::shutdown);
 
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) && defined(__GLIBC__)
     class MemoryTrimmer : public QObject
     {
     public: