aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox/mallinfo.patch
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-01 23:55:34 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-03-02 01:39:20 -0300
commitb95a02111cbc18c810d706c9c522af20674d1f23 (patch)
tree6992bbad7e41f6e20588c13406aa02933e2521d9 /community/firefox/mallinfo.patch
parentde46d6ac7a77db3185628df176d9cef27d1b76ad (diff)
downloadaports-b95a02111cbc18c810d706c9c522af20674d1f23.tar.bz2
aports-b95a02111cbc18c810d706c9c522af20674d1f23.tar.xz
community/firefox: move from testing
Since we support community for stable releases this would also mean that we'll have to bump nss, nspr and firefox in stable releases, but I think this should be fine for the 6 months of support we offer.
Diffstat (limited to 'community/firefox/mallinfo.patch')
-rw-r--r--community/firefox/mallinfo.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/firefox/mallinfo.patch b/community/firefox/mallinfo.patch
new file mode 100644
index 0000000000..7916a200ca
--- /dev/null
+++ b/community/firefox/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__)