meson: rename HAVE_SYSTEMD_DAEMON to HAVE_SYSTEMD

This variable describes whether we have systemd and libsystemd,
not just <systemd/sd-daemon.h>

While at it, sneak in a fix for the warning message:
"systemd should never ever be capitalized".

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
This commit is contained in:
Sergey Bugaev 2020-11-05 14:16:04 +03:00 committed by Wim Taymans
parent 1507f40eb0
commit 28af82e6d9
3 changed files with 6 additions and 6 deletions

View file

@ -40,7 +40,7 @@
#include <spa/pod/iter.h>
#include <spa/utils/result.h>
#ifdef HAVE_SYSTEMD_DAEMON
#ifdef HAVE_SYSTEMD
#include <systemd/sd-daemon.h>
#endif
@ -576,7 +576,7 @@ static int add_socket(struct pw_protocol *protocol, struct server *s)
int fd = -1, res;
bool activated = false;
#ifdef HAVE_SYSTEMD_DAEMON
#ifdef HAVE_SYSTEMD
{
int i, n = sd_listen_fds(0);
for (i = 0; i < n; ++i) {