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

windows: plat: only build client ctx init if WITH_TLS

https://github.com/warmcat/libwebsockets/issues/2385
This commit is contained in:
Andy Green 2021-08-17 06:43:10 +01:00
parent 40db9f9f19
commit 15a078c2cc

View file

@ -244,6 +244,8 @@ lws_plat_change_pollfd(struct lws_context *context, struct lws *wsi,
return 0; return 0;
} }
#if defined(LWS_WITH_TLS)
int int
lws_plat_vhost_tls_client_ctx_init(struct lws_vhost *vhost) lws_plat_vhost_tls_client_ctx_init(struct lws_vhost *vhost)
{ {
@ -401,6 +403,8 @@ lws_plat_vhost_tls_client_ctx_init(struct lws_vhost *vhost)
return 0; return 0;
} }
#endif
const char * const char *
lws_plat_inet_ntop(int af, const void *src, char *dst, socklen_t cnt) lws_plat_inet_ntop(int af, const void *src, char *dst, socklen_t cnt)
{ {