summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHsia-Jun(Randy) Li <randy.li@synaptics.com>2022-01-17 13:13:47 -0500
committerSteve Dickson <steved@redhat.com>2022-01-20 10:56:32 -0500
commitd0252f2efdf006f83d89cdd732d3a15a7d7fecb9 (patch)
tree52c99088605d12ca67a658d4787336c62b264d2f /src
parent098561e121d560666c43347f88fc5f737d9e2476 (diff)
downloadti-rpc-d0252f2efdf006f83d89cdd732d3a15a7d7fecb9.tar.gz
_rpc_dtablesize: use portable system call
getdtablesize() is not specified in POSIX.1, Android won't support it at all. Signed-off-by: Hsia-Jun(Randy) Li <randy.li@synaptics.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rpc_dtablesize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc_dtablesize.c b/src/rpc_dtablesize.c
index 3fe503a..bce97e8 100644
--- a/src/rpc_dtablesize.c
+++ b/src/rpc_dtablesize.c
@@ -41,7 +41,7 @@ _rpc_dtablesize(void)
static int size;
if (size == 0) {
- size = getdtablesize();
+ size = sysconf(_SC_OPEN_MAX);
}
return (size);
}