diff options
author | Florian Smeets <flo@FreeBSD.org> | 2013-12-14 13:42:06 +0000 |
---|---|---|
committer | Florian Smeets <flo@FreeBSD.org> | 2013-12-14 13:42:06 +0000 |
commit | 7efa77ad7c5cf3417d7fe8c89dbe949a8facca79 (patch) | |
tree | 3f75766ca5d76f6dd2367c583fb90b16519be03a /www/firefox-esr/files/patch-bug946560 | |
parent | 306f0fd83b4dd6ed92cb257b5f916bc09f1583bf (diff) | |
download | ports-7efa77ad7c5cf3417d7fe8c89dbe949a8facca79.tar.gz ports-7efa77ad7c5cf3417d7fe8c89dbe949a8facca79.zip |
Notes
Diffstat (limited to 'www/firefox-esr/files/patch-bug946560')
-rw-r--r-- | www/firefox-esr/files/patch-bug946560 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-bug946560 b/www/firefox-esr/files/patch-bug946560 new file mode 100644 index 000000000000..e2560bd0d0c3 --- /dev/null +++ b/www/firefox-esr/files/patch-bug946560 @@ -0,0 +1,44 @@ +diff --git xpcom/base/nsMemoryInfoDumper.cpp xpcom/base/nsMemoryInfoDumper.cpp +index 0b2f78c..d857374 100644 +--- xpcom/base/nsMemoryInfoDumper.cpp ++++ xpcom/base/nsMemoryInfoDumper.cpp +@@ -30,7 +30,7 @@ + #include <unistd.h> + #endif + +-#ifdef XP_LINUX ++#if defined(XP_LINUX) || defined(__FreeBSD__) + #include <fcntl.h> + #include <sys/types.h> + #include <sys/stat.h> +@@ -109,7 +109,7 @@ private: + + } // anonymous namespace + +-#ifdef XP_LINUX // { ++#if defined(XP_LINUX) || defined(__FreeBSD__) // { + namespace { + + /* +@@ -548,7 +548,7 @@ nsMemoryInfoDumper::~nsMemoryInfoDumper( + /* static */ void + nsMemoryInfoDumper::Initialize() + { +-#ifdef XP_LINUX ++#if defined(XP_LINUX) || defined(__FreeBSD__) + SignalPipeWatcher::Create(); + FifoWatcher::MaybeCreate(); + #endif +diff --git xpcom/base/nsMemoryReporterManager.cpp xpcom/base/nsMemoryReporterManager.cpp +index 8c65665..8f6d0e9 100644 +--- xpcom/base/nsMemoryReporterManager.cpp ++++ xpcom/base/nsMemoryReporterManager.cpp +@@ -824,7 +824,7 @@ nsMemoryReporterManager::Init() + RegisterReporter(new mozilla::dmd::DMDReporter); + #endif + +-#if defined(XP_LINUX) ++#if defined(XP_LINUX) || defined(__FreeBSD__) + nsMemoryInfoDumper::Initialize(); + #endif + |