diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdeb801d..403432bb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -242,8 +242,8 @@ jobs: # ---------------------------------------------------------------- - - name: check stuff - run: ls /usr/lib/x86_64-linux-gnu + - name: check cmake-supporting packages + run: ls /usr/lib/x86_64-linux-gnu/cmake - name: Configure self (websock) # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. diff --git a/src/websock/Webserver.cpp b/src/websock/Webserver.cpp index 6e1dbdb1..3f793111 100644 --- a/src/websock/Webserver.cpp +++ b/src/websock/Webserver.cpp @@ -657,6 +657,8 @@ namespace xo { virtual void init_protocols(std::vector * 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*/