From fdd429cd587737840a8ca08c2eb59b63423d4c3e Mon Sep 17 00:00:00 2001 From: Mike Looijmans Date: Fri, 12 Jan 2024 09:24:48 +0100 Subject: x0vncserver: Add support for systemd socket activation systemd can pass in sockets as file descriptors 3 and beyond. Allows the server to use socket activation. When triggered by systemd, no other listening sockets (e.g. rfbport) will be activated. Signed-off-by: Mike Looijmans --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e8d8d85d..6028fadf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -301,6 +301,9 @@ if(UNIX AND NOT APPLE) endif() endif() +# check for systemd support (socket activation) +pkg_check_modules(LIBSYSTEMD libsystemd) + # Generate config.h and make sure the source finds it configure_file(config.h.in config.h) add_definitions(-DHAVE_CONFIG_H) -- cgit v1.2.3