websock: populate lws_http_mount._unused prior to LWS version 4.3

This commit is contained in:
Roland Conybeare 2023-10-18 11:15:28 -04:00
commit b47cfebeb0

View file

@ -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*/