diff options
author | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-28 20:54:43 +0000 |
---|---|---|
committer | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-28 20:54:43 +0000 |
commit | 37588861e77606fbc90ecd4a0cbe87da491b3f2a (patch) | |
tree | 12227bc7fe4a4ef98bdbd12281fbb4caacb2d22b /base/test | |
parent | 821ffc93507c67e9e261dc7b10b129851b6820e1 (diff) | |
download | chromium_src-37588861e77606fbc90ecd4a0cbe87da491b3f2a.zip chromium_src-37588861e77606fbc90ecd4a0cbe87da491b3f2a.tar.gz chromium_src-37588861e77606fbc90ecd4a0cbe87da491b3f2a.tar.bz2 |
[Android]: Replace calls to getdtablesize with sysconf(_SC_OPEN_MAX) in tools.
The getdtablesize functions has been deprecated by Posix and has been removed
from Android's LB64 ABI. Replace calls to it with the modern equivalent
sysconf(_SC_OPEN_MAX).
This fixes a build breakage in tryserver.blink/builders/android_blink_compile_rel/dbg.
BUG=354405
TBR=phajdan.jr@chromium.org
Review URL: https://codereview.chromium.org/349323003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test')
-rw-r--r-- | base/test/multiprocess_test_android.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/test/multiprocess_test_android.cc b/base/test/multiprocess_test_android.cc index 126d8b1..6eb30b8 100644 --- a/base/test/multiprocess_test_android.cc +++ b/base/test/multiprocess_test_android.cc @@ -46,7 +46,7 @@ ProcessHandle SpawnMultiProcessTestChild(const std::string& procname, // Keep standard FDs (stdin, stdout, stderr, etc.) open since this // is not meant to spawn a daemon. int base = GlobalDescriptors::kBaseDescriptor; - for (int fd = base; fd < getdtablesize(); ++fd) { + for (int fd = base; fd < sysconf(_SC_OPEN_MAX); ++fd) { if (fds_to_keep_open.find(fd) == fds_to_keep_open.end()) { close(fd); } |