termux-packages/x11-packages/qt-creator/malloc_trim.patch

13 lines
208 B
Diff

--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -79,6 +79,9 @@
#ifdef Q_OS_LINUX
#include <malloc.h>
+#ifdef __ANDROID__
+#define malloc_trim(pad) (0)
+#endif
#endif
using namespace ExtensionSystem;