Ask sysconf for Android's getdtablesize.

This commit is contained in:
Dan Albert 2016-02-11 16:13:27 -08:00 committed by Andy Green
parent f9267170a3
commit cd5e7bff82

View file

@ -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