Fix filestuff.c build error if RLIMIT_NOFILE not defined.
authorJoel Brobecker <brobecker@adacore.com>
Sun, 17 Nov 2013 03:50:09 +0000 (22:50 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Mon, 2 Dec 2013 03:14:10 +0000 (07:14 +0400)
commitf9b0da3d5833ad5f809422f3084b0ef8fa5c5762
tree39fbac4359f2e58437b4dacb579dec76fd41690a
parent2dd4d4224afba558be14b39e2886ba47b2132678
Fix filestuff.c build error if RLIMIT_NOFILE  not defined.

Not all systems supporting getrlimit also support RLIMIT_NOFILE
(Eg. All LynxOS systems appear to be lacking support for this).
So check its existance before using it.

gdb/ChangeLog:

        * common/filestuff.c (fdwalk): Add "defined(RLIMIT_NOFILE)"
        preprocessor check.
gdb/ChangeLog
gdb/common/filestuff.c