summaryrefslogtreecommitdiff
path: root/user/qt-creator/malloc_trim.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-11-22 01:34:45 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2022-11-22 03:14:38 -0600
commitbdd71ef51bdd0b679a1384d3d8cce744ab2c9cc0 (patch)
tree02d73ce75d3c407c4ff073f63c2e2c221827de6a /user/qt-creator/malloc_trim.patch
parentb8ab04302be9c01e8d4d93afad294a3a3261ac9a (diff)
downloadpackages-bdd71ef51bdd0b679a1384d3d8cce744ab2c9cc0.tar.gz
packages-bdd71ef51bdd0b679a1384d3d8cce744ab2c9cc0.tar.bz2
packages-bdd71ef51bdd0b679a1384d3d8cce744ab2c9cc0.tar.xz
packages-bdd71ef51bdd0b679a1384d3d8cce744ab2c9cc0.zip
user/qt-creator: Update to 4.15.2
Backport some fixes for LLVM 14 compatibility. Closes: #808
Diffstat (limited to 'user/qt-creator/malloc_trim.patch')
-rw-r--r--user/qt-creator/malloc_trim.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/qt-creator/malloc_trim.patch b/user/qt-creator/malloc_trim.patch
new file mode 100644
index 000000000..f7a012750
--- /dev/null
+++ b/user/qt-creator/malloc_trim.patch
@@ -0,0 +1,12 @@
+malloc_trim is not available on musl and it isn't needed anyway.
+--- qt-creator-opensource-src-4.15.2/src/app/main.cpp.old 2021-07-12 21:12:53.000000000 -0500
++++ qt-creator-opensource-src-4.15.2/src/app/main.cpp 2022-11-22 00:29:21.110626363 -0600
+@@ -782,7 +782,7 @@
+ // 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: