diff --git a/lib/libwebsockets.h b/lib/libwebsockets.h index 35287be2..13cff6de 100644 --- a/lib/libwebsockets.h +++ b/lib/libwebsockets.h @@ -4066,7 +4066,7 @@ typedef union { * parent may be NULL, if given it should be an existing wsi that will become the * parent of the new wsi created by this call. */ -LWS_VISIBLE struct lws * +LWS_VISIBLE LWS_EXTERN struct lws * lws_adopt_descriptor_vhost(struct lws_vhost *vh, lws_adoption_type type, lws_sock_file_fd_type fd, const char *vh_prot_name, struct lws *parent); diff --git a/lib/server-handshake.c b/lib/server-handshake.c index d989fdb6..ec9b14e9 100644 --- a/lib/server-handshake.c +++ b/lib/server-handshake.c @@ -156,7 +156,7 @@ lws_extension_server_handshake(struct lws *wsi, char **p, int budget) LWS_EXT_CB_CONSTRUCT, (void *)&wsi->act_ext_user[ wsi->count_act_ext], - &opts, 0)) { + (void *)&opts, 0)) { lwsl_notice("ext %s failed construction\n", ext_name); ext_count--; diff --git a/plugins/protocol_lws_server_status.c b/plugins/protocol_lws_server_status.c index fb6d13f6..96b2ef29 100644 --- a/plugins/protocol_lws_server_status.c +++ b/plugins/protocol_lws_server_status.c @@ -23,6 +23,7 @@ #include "../lib/libwebsockets.h" #include #include +#include struct lws_ss_load_sample { time_t t;