Commit 366194cd authored by Fredrik Fornwall's avatar Fredrik Fornwall Committed by Roger Light
Browse files

Replace getdtablesize() with sysconf(_SC_OPEN_MAX)

From http://man7.org/linux/man-pages/man3/getdtablesize.3.html

:

"It is not specified in POSIX.1; portable applications should employ
sysconf(_SC_OPEN_MAX) instead of this call."

Specifically this fixes a build failure on Android which does not
have getdtablesize().

Signed-off-by: default avatarFredrik Fornwall <fredrik@fornwall.net>
parent 8de5ed44
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment