Bug 540545 - NS_ERROR is very annoying in X86 maemo builds. r=dougt

--HG--
extra : rebase_source : 3355bf2092ded94c75bc733f2c36c51428dd53ef
This commit is contained in:
Oleg Romashin 2010-02-18 23:52:54 +02:00
parent a1a6327f16
commit 040cc3c6c6

View File

@ -57,7 +57,7 @@
#include <windows.h>
#endif
#if defined(MOZ_PLATFORM_MAEMO)
#if defined(MOZ_PLATFORM_MAEMO) && defined(__arm__)
#include <osso-mem.h>
#include <fcntl.h>
#include <unistd.h>
@ -128,7 +128,7 @@ nsMemoryImpl::IsLowMemory(PRBool *result)
GlobalMemoryStatusEx(&stat);
*result = (stat.ullAvailPageFile < kRequiredMemory) &&
((float)stat.ullAvailPageFile / stat.ullTotalPageFile) < 0.1;
#elif defined(MOZ_PLATFORM_MAEMO)
#elif defined(MOZ_PLATFORM_MAEMO) && defined(__arm__)
static int osso_highmark_fd = -1;
if (osso_highmark_fd == -1) {
osso_highmark_fd = open (kHighMark, O_RDONLY);