1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

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