mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
Replace LIBSYSTEMD_DAEMON with LIBSYSTEMD
Signed-off-by: Aron Xu <aron@debian.org>
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
dfc5f33f85
commit
d4b6d97697
+2
-2
@@ -47,7 +47,7 @@
|
||||
# include <tcpd.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_LIBSYSTEMD_DAEMON
|
||||
#ifdef HAVE_LIBSYSTEMD
|
||||
# include <systemd/sd-daemon.h>
|
||||
#endif
|
||||
#include <main.h>
|
||||
@@ -278,7 +278,7 @@ listen_ports(void *pool, struct cfg_st* config,
|
||||
list_head_init(&list->head);
|
||||
list->total = 0;
|
||||
|
||||
#ifdef HAVE_LIBSYSTEMD_DAEMON
|
||||
#ifdef HAVE_LIBSYSTEMD
|
||||
/* Support for systemd socket-activatable service */
|
||||
if ((fds=sd_listen_fds(0)) > 0) {
|
||||
/* if we get our fds from systemd */
|
||||
|
||||
Reference in New Issue
Block a user