summaryrefslogtreecommitdiff
path: root/repo/thunderbird/mallinfo.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-01 18:23:59 +0100
committerdavidovski <david@davidovski.xyz>2022-06-01 18:23:59 +0100
commitfccdaa986f67f820df2914bef851d5fed77abac8 (patch)
tree6bc6503af26cbc32f5db1558c129f7303282172e /repo/thunderbird/mallinfo.patch
parentfa2c7177695d2072d541057a9610e55b51ff4db1 (diff)
added thunderbird and qt5
Diffstat (limited to 'repo/thunderbird/mallinfo.patch')
-rw-r--r--repo/thunderbird/mallinfo.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/repo/thunderbird/mallinfo.patch b/repo/thunderbird/mallinfo.patch
new file mode 100644
index 0000000..7916a20
--- /dev/null
+++ b/repo/thunderbird/mallinfo.patch
@@ -0,0 +1,20 @@
+diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp
+index 865e1b5430..9a00dafecb 100644
+--- a/xpcom/base/nsMemoryReporterManager.cpp
++++ b/xpcom/base/nsMemoryReporterManager.cpp
+@@ -124,6 +124,7 @@ static MOZ_MUST_USE nsresult ResidentUniqueDistinguishedAmount(int64_t* aN) {
+ return GetProcSelfSmapsPrivate(aN);
+ }
+
++#ifdef __GLIBC__
+ # ifdef HAVE_MALLINFO
+ # define HAVE_SYSTEM_HEAP_REPORTER 1
+ static MOZ_MUST_USE nsresult SystemHeapSize(int64_t* aSizeOut) {
+@@ -143,6 +144,7 @@ static MOZ_MUST_USE nsresult SystemHeapSize(int64_t* aSizeOut) {
+ return NS_OK;
+ }
+ # endif
++#endif
+
+ #elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || \
+ defined(__OpenBSD__) || defined(__FreeBSD_kernel__)