From 1662c624efac21883809f3f58f98a37556bb0da4 Mon Sep 17 00:00:00 2001 From: Krishnaraj R Bhat Date: Wed, 28 Oct 2015 21:02:04 +0530 Subject: [PATCH] Define getdtablesize() for android getdtablesize() has been removed from headers since android-21. Its value was 1024 in previous android api levels --- lib/libwebsockets.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 4376f4838..317a6e6f1 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -70,6 +70,10 @@ extern "C" { #define LWS_VISIBLE #endif +#if defined(__ANDROID__) +#define getdtablesize() 1024 +#endif + #endif #ifdef LWS_USE_LIBEV