1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00
libwebsockets/lib/plat/unix
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
..
android async dns: allow multiple servers and public add remove apis 2021-11-17 14:50:08 +00:00
CMakeLists.txt unix: Fix linker errors when building without sdevent 2025-03-01 08:13:50 +00:00
private-lib-plat-unix.h Introducing libwebsockets support for nuttx 2023-09-21 13:08:16 +01:00
unix-caps.c logs: log contexts 2021-07-01 05:20:53 +01:00
unix-fds.c delete_from_fd: assert if fd beyond the max_fds 2022-09-18 08:17:25 +01:00
unix-file.c unix-file: Fix signed/unsigned implicit conversion 2024-10-03 05:21:43 +01:00
unix-init.c mbedtls: fix issue about memory leak 2024-11-08 07:57:25 +00:00
unix-misc.c coverity: ntp from blob: handle blob missing 2021-06-04 14:58:15 +01:00
unix-pipe.c pipe: only pt destroy pipe close should close pipe fds 2024-09-25 08:42:44 +01:00
unix-plugins.c plugins: iterate builtin plugins as if loaded 2021-11-07 07:04:09 +00:00
unix-resolv.c async dns: allow multiple servers and public add remove apis 2021-11-17 14:50:08 +00:00
unix-service.c Fault injection 2021-04-05 10:55:04 +01:00
unix-sockets.c sll_protocol may be be16 2025-02-14 16:09:44 +00:00
unix-spawn.c cgi: setenv: remove equals from arg 2024-09-23 10:36:50 +01:00
unix-systemd.c systemd-sockact: set port to 0 on unix domain 2024-01-15 09:18:48 +00:00