Switch from deprecated Posix function removed in Android's LB64 ABI
This commit is contained in:
parent
dce42313ad
commit
9a5aa89fb5
|
@ -10439,6 +10439,8 @@ static void close_fds_after_fork(int skip1, int skip2, int skip3)
|
||||||
|
|
||||||
# ifdef USE_ULIMIT
|
# ifdef USE_ULIMIT
|
||||||
i = ulimit(4, 0);
|
i = ulimit(4, 0);
|
||||||
|
# elif defined(__ANDROID__)
|
||||||
|
i = sysconf(_SC_OPEN_MAX);
|
||||||
# else
|
# else
|
||||||
i = getdtablesize();
|
i = getdtablesize();
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user