1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/lib
Daniel Danzberger 4c50636912 unix: Fix linker errors when building without sdevent
When building without systemd event support (-DLWS_WITH_SDEVENT=OFF) on
a system that has libsystemd headers installed, lib/plat/unix-systemd.c
is build in anyway.
The final libwebsockets library has then references to symbols from
libsystemd even though it won't be linked.

Resulting in the follwoing linker errros:
--
/usr/bin/ld: /usr/local/lib/libwebsockets.so: undefined reference to `sd_is_socket_inet'
/usr/bin/ld: /usr/local/lib/libwebsockets.so: undefined reference to `sd_is_socket_unix'
/usr/bin/ld: /usr/local/lib/libwebsockets.so: undefined reference to `sd_listen_fds'
--

This commit ensures that unix-system.c is only build when LWS_WITH_SDEVENT is set and
the system has libsystemd headers installed.

Signed-off-by: Daniel Danzberger <dd@embedd.com>
2025-03-01 08:13:50 +00:00
..
core coverity 872858: hash gen overflow false positive 2025-01-22 08:43:45 +00:00
core-net lws_mux_mark_immortal: remove noisy log 2025-02-25 19:34:29 +00:00
cose coverity: 2021-12-1 uplevel fixes 2022-03-15 10:28:09 +00:00
drivers spi: read 2024-11-03 07:59:12 +00:00
event-libs custom_event: fake_POLLIN_override 2024-09-30 12:49:08 +01:00
jose idf: cleanups 2024-11-03 07:59:12 +00:00
misc coverity 472859: jpeg restart_interval 2025-01-22 08:43:45 +00:00
plat unix: Fix linker errors when building without sdevent 2025-03-01 08:13:50 +00:00
roles coverity 472861: http2: deal with zero length data without overflow 2025-01-22 08:43:45 +00:00
secure-streams google-fuzzer: avoid warnings about c / c++ size diff 2025-02-14 16:09:57 +00:00
system async dns: allow up to 8 x 128-char CNAMEs from 4 2025-02-27 07:41:00 +00:00
tls lws_tls_openssl_asn1time_to_unix: fix 13 char asn1 epoch 2025-02-24 12:41:07 +00:00
CMakeLists.txt PkgConfig: include libsystemd if needed by lib 2025-02-28 17:21:11 +00:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries