websock: initializer for lws_http_mount._unused[] with lws 4.0
This commit is contained in:
parent
1a72a54633
commit
c8326018bb
2 changed files with 7 additions and 2 deletions
|
|
@ -657,6 +657,8 @@ namespace xo {
|
|||
virtual void init_protocols(std::vector<lws_protocols> * p_v) = 0;
|
||||
|
||||
void init_mount_dynamic(lws_http_mount * p_mount) {
|
||||
/* see lws-context-vhost.h for lws_http_mount */
|
||||
|
||||
*p_mount = {
|
||||
/* .mount_next */ NULL, /* linked-list "next" */
|
||||
/* .mountpoint */ "/dyn", /* mountpoint URL */
|
||||
|
|
@ -675,6 +677,9 @@ namespace xo {
|
|||
/* .origin_protocol */ LWSMPRO_CALLBACK, /* dynamic */
|
||||
/* .mountpoint_len */ 4, /* char count */
|
||||
/* .basic_auth_login_file */ NULL,
|
||||
# if (LWS_LIBRARY_VERSION_MAJOR < 4) || (LWS_LIBRARY_VERSION_MINOR < 3) // -Werror=missing-field-initializers
|
||||
/* ._unused[] */ { nullptr, nullptr },
|
||||
# endif
|
||||
};
|
||||
} /*init_mount_dynamic*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue