Fix filestuff.c build error if RLIMIT_NOFILE not defined.
[deliverable/binutils-gdb.git] / gdb / common / filestuff.c
index 2792d59fd8bc5b5b6c74c338d1add8bd147e4fa8..b884c02d1c500126428bfd16d26c5a5e6fe60e36 100644 (file)
@@ -115,7 +115,7 @@ fdwalk (int (*func) (void *, int), void *arg)
   {
     int max, fd;
 
-#ifdef HAVE_GETRLIMIT
+#if defined(HAVE_GETRLIMIT) && defined(RLIMIT_NOFILE)
     struct rlimit rlim;
 
     if (getrlimit (RLIMIT_NOFILE, &rlim) == 0 && rlim.rlim_max != RLIM_INFINITY)
This page took 0.02367 seconds and 4 git commands to generate.