Ask sysconf for Android's getdtablesize.
This commit is contained in:
parent
f9267170a3
commit
cd5e7bff82
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ struct sockaddr_in;
|
|||
#endif
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
#define getdtablesize() 1024
|
||||
#include <unistd.h>
|
||||
#define getdtablesize() sysconf(_SC_OPEN_MAX)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue