websock: populate lws_http_mount._unused prior to LWS version 4.3
This commit is contained in:
parent
c8326018bb
commit
b47cfebeb0
1 changed files with 6 additions and 1 deletions
|
|
@ -677,7 +677,8 @@ 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
|
||||
# if ((LWS_LIBRARY_VERSION_MAJOR < 4)
|
||||
|| ((LWS_LIBRARY_VERSION_MAJOR == 4) && (LWS_LIBRARY_VERSION_MINOR < 3)))
|
||||
/* ._unused[] */ { nullptr, nullptr },
|
||||
# endif
|
||||
};
|
||||
|
|
@ -704,6 +705,10 @@ namespace xo {
|
|||
/* .origin_protocol */ LWSMPRO_FILE, /* files in a dir */
|
||||
/* .mountpoint_len */ 1, /* char count */
|
||||
/* .basic_auth_login_file */ NULL,
|
||||
# if ((LWS_LIBRARY_VERSION_MAJOR < 4)
|
||||
|| ((LWS_LIBRARY_VERSION_MAJOR == 4) && (LWS_LIBRARY_VERSION_MINOR < 3)))
|
||||
/* ._unused[] */ { nullptr, nullptr },
|
||||
# endif
|
||||
};
|
||||
} /*init_mount_static*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue