From d0252f2efdf006f83d89cdd732d3a15a7d7fecb9 Mon Sep 17 00:00:00 2001 From: "Hsia-Jun(Randy) Li" Date: Mon, 17 Jan 2022 13:13:47 -0500 Subject: _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 Signed-off-by: Steve Dickson --- src/rpc_dtablesize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.1