summaryrefslogtreecommitdiff
path: root/dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch
blob: d4936882d4d28ba1759d59081eac71a27694cb81 (plain)
1
2
3
4
5
6
7
8
9
10
malloc_trim() is unavailable with musl
--- a/src/plugins/coreplugin/mainwindow.cpp
+++ b/src/plugins/coreplugin/mainwindow.cpp
@@ -222,5 +222,5 @@
         m_trimTimer.setInterval(60000);
         // glibc may not actually free memory in free().
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) && defined(__GLIBC__)
         connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
 #endif