projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix filestuff.c build error if RLIMIT_NOFILE not defined.
[deliverable/binutils-gdb.git]
/
gdb
/
common
/
filestuff.c
diff --git
a/gdb/common/filestuff.c
b/gdb/common/filestuff.c
index 2792d59fd8bc5b5b6c74c338d1add8bd147e4fa8..b884c02d1c500126428bfd16d26c5a5e6fe60e36 100644
(file)
--- a/
gdb/common/filestuff.c
+++ b/
gdb/common/filestuff.c
@@
-115,7
+115,7
@@
fdwalk (int (*func) (void *, int), void *arg)
{
int max, fd;
-#if
def 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.