* configure.ac: Check for getrlimit function directly rather than the "sys/resource.h" header file. * lib/fdleak.c: Include "sys/resource.h" when HAVE_GETRLIMIT is set. (get_max_fd): s/HAVE_GETRUSAGE/HAVE_GETRLIMIT/.