diff options
Diffstat (limited to 'freebsd/lib/libc/rpc/rpc_generic.c')
-rw-r--r-- | freebsd/lib/libc/rpc/rpc_generic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/freebsd/lib/libc/rpc/rpc_generic.c b/freebsd/lib/libc/rpc/rpc_generic.c index 9a72dacc..a634a810 100644 --- a/freebsd/lib/libc/rpc/rpc_generic.c +++ b/freebsd/lib/libc/rpc/rpc_generic.c @@ -122,9 +122,11 @@ __rpc_dtbsize(void) if (tbsize) { return (tbsize); } +#ifndef __rtems__ if (getrlimit(RLIMIT_NOFILE, &rl) == 0) { return (tbsize = (int)rl.rlim_max); } +#endif /* __rtems__ */ /* * Something wrong. I'll try to save face by returning a * pessimistic number. |