Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/Basic/PlatformUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ int sys::write(int fileHandle, void *destinationBuffer,
// Get the current process' open file limit. Returns -1 on failure.
llbuild_rlim_t sys::getOpenFileLimit() {
#if defined(_WIN32)
int value = _getmaxstdio();
return std::min(0, value);
return _getmaxstdio();
#else
struct rlimit rl;
int ret = getrlimit(RLIMIT_NOFILE, &rl);
Expand Down