diff --git a/mozilla/network/module/nsHttpUrl.cpp b/mozilla/network/module/nsHttpUrl.cpp index 28f7b4b5b7b..1243336062b 100644 --- a/mozilla/network/module/nsHttpUrl.cpp +++ b/mozilla/network/module/nsHttpUrl.cpp @@ -536,7 +536,7 @@ nsresult nsHttpUrlImpl::ParseURL(const nsString& aSpec, const nsIURI* aURL) } -#if defined(XP_UNIX) || defined (XP_MAC) +#if defined(XP_UNIX) || defined (XP_MAC) || defined (XP_BEOS) // Always leave the top level slash for absolute file paths under Mac and UNIX. // The code above sometimes results in stripping all of slashes // off. This only happens when a previously stripped url is asked to be diff --git a/mozilla/network/module/nsNetFile.cpp b/mozilla/network/module/nsNetFile.cpp index aa97c555c9b..8c4e758a1c9 100644 --- a/mozilla/network/module/nsNetFile.cpp +++ b/mozilla/network/module/nsNetFile.cpp @@ -4,7 +4,7 @@ #include "plstr.h" #include "prerror.h" -#ifndef XP_UNIX +#if !defined(XP_UNIX) && !defined(XP_BEOS) #include "direct.h" #endif @@ -236,7 +236,7 @@ void nsNetFile::GenerateGlobalRandomBytes(void *aDest, size_t aLen) { #define MAX_PATH_LEN 512 -#ifdef XP_UNIX +#if defined(XP_UNIX) || defined(XP_BEOS) // Checked this in to fix the build. I have no idea where this lives // on Unix. I have no idea if this implementation does the right thing