0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-06-05 09:21:20 +00:00
Files
termux-packages/x11-packages/chromium-host-tools/cr-patches/2006-crashpad-no-getdtablesize.patch
2025-04-14 23:50:29 +08:00

12 lines
594 B
Diff

--- a/third_party/crashpad/crashpad/util/posix/close_multiple.cc
+++ b/third_party/crashpad/crashpad/util/posix/close_multiple.cc
@@ -134,7 +134,7 @@
// bionic/libc/bionic/ndk_cruft.cpp getdtablesize().
int max_fd = implicit_cast<int>(sysconf(_SC_OPEN_MAX));
-#if !BUILDFLAG(IS_ANDROID)
+#if !BUILDFLAG(IS_ANDROID) && !defined(__TERMUX__)
// getdtablesize() was removed effective Android 5.0.0 (API 21). Since it
// returns the same thing as the sysconf() above, just skip it. See
// https://android.googlesource.com/platform/bionic/+/462abab12b074c62c0999859e65d5a32ebb41951.