summaryrefslogtreecommitdiff
path: root/dom/system/OSFileConstants.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-10-14 16:57:01 +0000
committerMoonchild <moonchild@palemoon.org>2022-04-01 15:17:54 +0200
commit28a3cd1028612b3b577768519d11fa6fbcda6f09 (patch)
tree61a64f843d3bfed644305987dbe1482d7b39c11a /dom/system/OSFileConstants.cpp
parentf987138760b344a8869e319f28400acc438d0553 (diff)
downloaduxp-28a3cd1028612b3b577768519d11fa6fbcda6f09.tar.gz
Issue #1053 - First pass Android defines and remove Android Annotation
processors, some Andoid packaging stuff, Eclipse IDE support et al.
Diffstat (limited to 'dom/system/OSFileConstants.cpp')
-rw-r--r--dom/system/OSFileConstants.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/dom/system/OSFileConstants.cpp b/dom/system/OSFileConstants.cpp
index c18d9aa6de..2b8a7e5369 100644
--- a/dom/system/OSFileConstants.cpp
+++ b/dom/system/OSFileConstants.cpp
@@ -15,14 +15,9 @@
#include "dirent.h"
#include "poll.h"
#include "sys/stat.h"
-#if defined(ANDROID)
-#include <sys/vfs.h>
-#define statvfs statfs
-#else
#include "sys/statvfs.h"
#include "sys/wait.h"
#include <spawn.h>
-#endif // defined(ANDROID)
#endif // defined(XP_UNIX)
#if defined(XP_LINUX)
@@ -345,8 +340,7 @@ void CleanupOSFileConstants()
*/
#define PROP_END { nullptr, JS::UndefinedValue() }
-
-// Define missing constants for Android
+// Define missing constants on non-*nix
#if !defined(S_IRGRP)
#define S_IXOTH 0001
#define S_IWOTH 0002
@@ -362,6 +356,7 @@ void CleanupOSFileConstants()
#define S_IRWXU 0700
#endif // !defined(S_IRGRP)
+
/**
* The properties defined in libc.
*
@@ -595,10 +590,8 @@ static const dom::ConstantSpec gLibcProperties[] =
// The size of |fsblkcnt_t|.
{ "OSFILE_SIZEOF_FSBLKCNT_T", JS::Int32Value(sizeof (fsblkcnt_t)) },
-#if !defined(ANDROID)
// The size of |posix_spawn_file_actions_t|.
{ "OSFILE_SIZEOF_POSIX_SPAWN_FILE_ACTIONS_T", JS::Int32Value(sizeof (posix_spawn_file_actions_t)) },
-#endif // !defined(ANDROID)
// Defining |dirent|.
// Size