#if defined(_WIN32) && defined(EXTERNAL_POLL) #define WINVER 0x0600 #define _WIN32_WINNT 0x0600 #define poll(fdArray, fds, timeout) WSAPoll((LPWSAPOLLFD)(fdArray), (ULONG)(fds), (INT)(timeout)) #endif #include "lws_config.h" #include #include #include #include #include #include #include #include #ifndef _WIN32 #include #endif #include "../lib/libwebsockets.h" #include "lejp.h" #ifdef _WIN32 #include #include "gettimeofday.h" #else #include #include #include #endif #ifndef __func__ #define __func__ __FUNCTION__ #endif extern int lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d, char **config_strings, int *len); extern int lwsws_get_config_vhosts(struct lws_context *context, struct lws_context_creation_info *info, const char *d, char **config_strings, int *len);