diff --git a/modules/libreg/xpcom/nsRegistry.cpp b/modules/libreg/xpcom/nsRegistry.cpp index 5c93f3eda39d..68b1fc98c3bc 100644 --- a/modules/libreg/xpcom/nsRegistry.cpp +++ b/modules/libreg/xpcom/nsRegistry.cpp @@ -39,6 +39,11 @@ #include "nsComponentManager.h" +#ifdef XP_BEOS +#include +#include +#endif + /* extra locking for the paranoid */ /* #define EXTRA_THREADSAFE */ #ifndef EXTRA_THREADSAFE diff --git a/xpcom/components/nsRegistry.cpp b/xpcom/components/nsRegistry.cpp index 5c93f3eda39d..68b1fc98c3bc 100644 --- a/xpcom/components/nsRegistry.cpp +++ b/xpcom/components/nsRegistry.cpp @@ -39,6 +39,11 @@ #include "nsComponentManager.h" +#ifdef XP_BEOS +#include +#include +#endif + /* extra locking for the paranoid */ /* #define EXTRA_THREADSAFE */ #ifndef EXTRA_THREADSAFE diff --git a/xpcom/io/nsDirectoryService.cpp b/xpcom/io/nsDirectoryService.cpp index d1214976c8a5..cd17a373449b 100644 --- a/xpcom/io/nsDirectoryService.cpp +++ b/xpcom/io/nsDirectoryService.cpp @@ -84,10 +84,12 @@ #define HOME_DIR NS_MAC_HOME_DIR #elif defined (XP_UNIX) #define HOME_DIR NS_UNIX_HOME_DIR +#elif defined (XP_BEOS) +#define HOME_DIR NS_BEOS_HOME_DIR #endif // define default product directory -#if defined(XP_PC) || defined(XP_MAC) +#if defined(XP_PC) || defined(XP_MAC) || defined(XP_BEOS) #define DEFAULT_PRODUCT_DIR "Mozilla" #elif defined (XP_UNIX) #define DEFAULT_PRODUCT_DIR ".mozilla"