diff --git a/xpcom/base/nsMemoryInfoDumper.cpp b/xpcom/base/nsMemoryInfoDumper.cpp index 0b2f78cdc0b9..d857374ed396 100644 --- a/xpcom/base/nsMemoryInfoDumper.cpp +++ b/xpcom/base/nsMemoryInfoDumper.cpp @@ -6,7 +6,7 @@ #include "mozilla/nsMemoryInfoDumper.h" -#ifdef XP_LINUX +#if defined(XP_LINUX) || defined(__FreeBSD__) #include "mozilla/Preferences.h" #endif #include "mozilla/unused.h" @@ -31,7 +31,7 @@ #include #endif -#ifdef XP_LINUX +#if defined(XP_LINUX) || defined(__FreeBSD__) #include #include #include @@ -110,7 +110,7 @@ private: } // anonymous namespace -#ifdef XP_LINUX // { +#if defined(XP_LINUX) || defined(__FreeBSD__) // { namespace { /* @@ -552,7 +552,7 @@ nsMemoryInfoDumper::~nsMemoryInfoDumper() /* static */ void nsMemoryInfoDumper::Initialize() { -#ifdef XP_LINUX +#if defined(XP_LINUX) || defined(__FreeBSD__) SignalPipeWatcher::Create(); FifoWatcher::MaybeCreate(); #endif diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp index 1252e270cf33..6f22093ed9d5 100644 --- a/xpcom/base/nsMemoryReporterManager.cpp +++ b/xpcom/base/nsMemoryReporterManager.cpp @@ -17,7 +17,7 @@ #include "nsPIDOMWindow.h" #include "nsIObserverService.h" #include "nsIGlobalObject.h" -#if defined(XP_LINUX) +#if defined(XP_LINUX) || defined(__FreeBSD__) #include "nsMemoryInfoDumper.h" #endif #include "mozilla/Attributes.h" @@ -898,7 +898,7 @@ nsMemoryReporterManager::Init() RegisterStrongReporter(new mozilla::dmd::DMDReporter()); #endif -#if defined(XP_LINUX) +#if defined(XP_LINUX) || defined(__FreeBSD__) nsMemoryInfoDumper::Initialize(); #endif