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

plugins: more explicit header inclusion

32-bit Debian doesn't have these included by other includes
already and needs them explicitly.
This commit is contained in:
Andy Green 2020-10-26 11:18:44 +00:00
parent 2eab1e3ea5
commit df0055ad0d
3 changed files with 4 additions and 0 deletions

View file

@ -235,6 +235,7 @@ endif()
if (LWS_WITH_PLUGINS AND NOT LWS_WITH_LIBUV)
message(STATUS "LWS_WITH_PLUGINS --> Enabling LWS_WITH_LIBUV")
set(LWS_WITH_LIBUV 1)
set(LWS_WITH_EVENT_LIBS 1)
endif()
if (LWS_WITH_PLUGINS OR LWS_WITH_CGI)

View file

@ -74,6 +74,8 @@
#include <string.h>
#include <fcntl.h>
#include <sys/stat.h>
struct per_vhost_data__raw_test {
struct lws_context *context;
struct lws_vhost *vhost;

View file

@ -29,6 +29,7 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#define TEST_SERVER_KEY_PATH "/etc/lws-test-sshd-server-key"