diff options
author | Hsia-Jun(Randy) Li <randy.li@synaptics.com> | 2022-01-17 13:13:47 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-01-20 10:56:32 -0500 |
commit | d0252f2efdf006f83d89cdd732d3a15a7d7fecb9 (patch) | |
tree | 52c99088605d12ca67a658d4787336c62b264d2f /src | |
parent | 098561e121d560666c43347f88fc5f737d9e2476 (diff) | |
download | ti-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.c | 2 |
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); } |