Index: third_party/crashpad/crashpad/util/posix/close_multiple.cc |
diff --git a/third_party/crashpad/crashpad/util/posix/close_multiple.cc b/third_party/crashpad/crashpad/util/posix/close_multiple.cc |
index 172a8f0215baa409d3a8654d641351c9f5f9aa2c..3749191b8dc1074ee8c55c74d645c228109ca8bb 100644 |
--- a/third_party/crashpad/crashpad/util/posix/close_multiple.cc |
+++ b/third_party/crashpad/crashpad/util/posix/close_multiple.cc |
@@ -179,7 +179,7 @@ void CloseMultipleNowOrOnExec(int fd, int preserve_fd) { |
max_fd = std::max(max_fd, getdtablesize()); |
#endif |
-#if !defined(OS_LINUX) || defined(OPEN_MAX) |
+#if !(defined(OS_LINUX) || defined(OS_ANDROID)) || defined(OPEN_MAX) |
// Linux does not provide OPEN_MAX. See |
// https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/include/linux/limits.h?id=77293034696e3e0b6c8b8fc1f96be091104b3d2b. |
max_fd = std::max(max_fd, OPEN_MAX); |