diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-06-26 17:16:51 -0700 |
---|---|---|
committer | Arun Raghavan <arun@arunraghavan.net> | 2019-07-01 01:37:04 +0000 |
commit | e64f8a5e429c8e0fcf6f7e71471661ccf58298d4 (patch) | |
tree | a76d1e974682ff2a8e75731b0b65f94b0a67e216 | |
parent | 1cf6d2c62a39d2add5b45557057e9aa17fcc8e6e (diff) | |
download | pulseaudio-e64f8a5e429c8e0fcf6f7e71471661ccf58298d4.tar.gz |
meson: fix builds on platorms without libsystemd
Without this, meson on Solaris exits with:
src/daemon/meson.build:138:15: ERROR: Unknown variable "systemd_dep".
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | meson.build | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 320cf8414..ef20907c9 100644 --- a/meson.build +++ b/meson.build @@ -394,10 +394,10 @@ if libsystemd_dep.found() cdata.set('HAVE_SYSTEMD_DAEMON', 1) cdata.set('HAVE_SYSTEMD_LOGIN', 1) cdata.set('HAVE_SYSTEMD_JOURNAL', 1) - systemd_dep = dependency('systemd', required : get_option('systemd')) - if systemd_dep.found() and systemduserunitdir == '' - systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir') - endif +endif +systemd_dep = dependency('systemd', required : get_option('systemd')) +if systemd_dep.found() and systemduserunitdir == '' + systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir') endif x11_dep = dependency('x11-xcb', required : get_option('x11')) |