diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/getdtablesize.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/getdtablesize.c b/lib/getdtablesize.c index bad45f7e32f..03eb7ef1bff 100644 --- a/lib/getdtablesize.c +++ b/lib/getdtablesize.c | |||
| @@ -89,6 +89,13 @@ getdtablesize (void) | |||
| 89 | # include <limits.h> | 89 | # include <limits.h> |
| 90 | # include <sys/resource.h> | 90 | # include <sys/resource.h> |
| 91 | 91 | ||
| 92 | # ifndef RLIM_SAVED_CUR | ||
| 93 | # define RLIM_SAVED_CUR RLIM_INFINITY | ||
| 94 | # endif | ||
| 95 | # ifndef RLIM_SAVED_MAX | ||
| 96 | # define RLIM_SAVED_MAX RLIM_INFINITY | ||
| 97 | # endif | ||
| 98 | |||
| 92 | # ifdef __CYGWIN__ | 99 | # ifdef __CYGWIN__ |
| 93 | /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it | 100 | /* Cygwin 1.7.25 auto-increases the RLIMIT_NOFILE soft limit until it |
| 94 | hits the compile-time constant hard limit of 3200. We might as | 101 | hits the compile-time constant hard limit of 3200. We might as |