Bug 540545 - NS_ERROR is very annoying in X86 maemo builds. r=dougt
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user