aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/fix-malloc-trim.patch
blob: 144494f4bcf7fd0799176f875befc471c7a51cdf (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
@@ -741,7 +741,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: