Solution: bug in ./res/res_limit.c RLIMIT_NPROC declaration

I’m not sure where to post fixes to the SVN, so I’m posting it here in the hope that a developer can submit it correctly …

There was an earlier submission to only define RLIMIT_NPROC and RLIMIT_MEMLOCK on platforms which support them, and the code was amended around lines 55-59 of ./res/res_limit.c

However, there was a further reference to RLIMIT_NPROC at line 110 which was omitted from the previous fix.

Here’s the solution …

diff res_limit.c.ORIG res_limit.c

109a110

#ifdef RLIMIT_NPROC
110a112,114
#else
if (resource != RLIMIT_NOFILE && resource != RLIMIT_CORE && resource != RLIMIT_FSIZE) {
#endif