From d4582b85d316e8ef62477dc742da52cbc1ab3b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Obiltschnig?= Date: Fri, 6 Mar 2015 16:28:08 +0100 Subject: [PATCH] Revert "fix: android arm64/x86_64 compile error with getdtablesize" --- Foundation/src/Process_UNIX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Foundation/src/Process_UNIX.cpp b/Foundation/src/Process_UNIX.cpp index 53866adb3..f496e7b97 100644 --- a/Foundation/src/Process_UNIX.cpp +++ b/Foundation/src/Process_UNIX.cpp @@ -200,7 +200,7 @@ ProcessHandleImpl* ProcessImpl::launchByForkExecImpl(const std::string& command, if (outPipe) outPipe->close(Pipe::CLOSE_BOTH); if (errPipe) errPipe->close(Pipe::CLOSE_BOTH); // close all open file descriptors other than stdin, stdout, stderr - for (int i = 3; i < sysconf(_SC_OPEN_MAX); ++i) + for (int i = 3; i < getdtablesize(); ++i) { close(i); }