diff --git xpcom/base/nsMemoryInfoDumper.cpp xpcom/base/nsMemoryInfoDumper.cpp index 0b2f78c..d857374 100644 --- mozilla/xpcom/base/nsMemoryInfoDumper.cpp +++ mozilla/xpcom/base/nsMemoryInfoDumper.cpp @@ -30,7 +30,7 @@ #include #endif -#ifdef XP_LINUX +#if defined(XP_LINUX) || defined(__FreeBSD__) #include #include #include @@ -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 --- mozilla/xpcom/base/nsMemoryReporterManager.cpp +++ mozilla/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