diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-04-27 21:13:08 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-05-02 16:29:11 -0400 |
commit | 2c201c2140f9a75f3698e988880f00f8d0492315 (patch) | |
tree | 28f9835b7720692a60dda9b88a598994a03b396c /src/resolve | |
parent | 829257d135c496bd5d2770036c449445f77e0abc (diff) |
meson: use booleans for conf.set and drop unecessary conditionals
Using conf.set() with a boolean argument does the right thing:
either #ifdef or #undef. This means that conf.set can be used unconditionally.
Previously I used '1' as the placeholder value, and that needs to be changed to
'true' for consistency (under meson 1 cannot be used in boolean context). All
checks need to be adjusted.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/meson.build b/src/resolve/meson.build index 347ffaaeca..f3c411ffee 100644 --- a/src/resolve/meson.build +++ b/src/resolve/meson.build @@ -123,7 +123,7 @@ systemd_resolve_sources = (basic_dns_sources + systemd_resolve_only_sources + dns_type_headers) -if conf.get('ENABLE_RESOLVED', 0) == 1 +if conf.get('ENABLE_RESOLVED', false) install_data('org.freedesktop.resolve1.conf', install_dir : dbuspolicydir) install_data('org.freedesktop.resolve1.service', |