Skip to content

Commit

Permalink
apply increased maximum file descriptor limit to all unix (#44491)
Browse files Browse the repository at this point in the history
Implemented in #41044, _POSIX_C_SOURCE is not defined by all platforms
(for example, Apple), so it was not getting executed there.
  • Loading branch information
vtjnash authored Mar 8, 2022
1 parent 88062ea commit 061d248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/support/libsupportinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <locale.h>
#include "libsupport.h"

#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
#ifndef _OS_WINDOWS_
#include <sys/resource.h>
#endif

Expand All @@ -25,7 +25,7 @@ void libsupport_init(void)
if (!isInitialized) {
ios_init_stdstreams();
isInitialized = 1;
#if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
#ifndef _OS_WINDOWS_
// Raise the open file descriptor limit.
{
struct rlimit rl;
Expand Down

0 comments on commit 061d248

Please sign in to comment.