From 5d5e56d92268c2b9b6ccc38eeaa3516ce9b1e8fd Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 12 Sep 2023 04:40:07 +0100 Subject: gentoo auto-resync : 12:09:2023 - 04:40:07 --- .../files/qt-creator-11.0.2-musl-no-malloc-trim.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch (limited to 'dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch') diff --git a/dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch b/dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch new file mode 100644 index 000000000000..d4936882d4d2 --- /dev/null +++ b/dev-qt/qt-creator/files/qt-creator-11.0.2-musl-no-malloc-trim.patch @@ -0,0 +1,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 -- cgit v1.2.3