Fix compilation failure on OSX. (#3309)
This commit is contained in:
parent
4398f054f2
commit
aec8d805ed
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ void nano::set_file_descriptor_limit (std::size_t limit)
|
|||
return;
|
||||
}
|
||||
|
||||
fd_limit.rlim_cur = std::min (limit, fd_limit.rlim_max);
|
||||
fd_limit.rlim_cur = std::min (static_cast<rlim_t> (limit), fd_limit.rlim_max);
|
||||
if (-1 == setrlimit (RLIMIT_NOFILE, &fd_limit))
|
||||
{
|
||||
std::cerr << "Unable to set limits for the number of open file descriptors: " << std::strerror (errno);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue