summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-01-13 16:30:54 +0400
committerSimon McVittie <smcv@collabora.com>2022-02-25 14:57:18 +0000
commitc8e781872307294133af3ce18be3c561cc00d129 (patch)
tree369690f8137d52be201d6aab063f21d65b397a68
parentb38a39884c44470a70a703bba2ff4353c616bb97 (diff)
downloaddbus-c8e781872307294133af3ce18be3c561cc00d129.tar.gz
bus/signal: fix compilation when only -Dembedded-tests
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> (cherry picked from commit a58d46b78957de03119dd54ab1a8346ff850abdb)
-rw-r--r--bus/signals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bus/signals.c b/bus/signals.c
index 6b7a464c..034e6e35 100644
--- a/bus/signals.c
+++ b/bus/signals.c
@@ -121,7 +121,7 @@ bus_match_rule_unref (BusMatchRule *rule)
}
}
-#if defined(DBUS_ENABLE_VERBOSE_MODE) || defined(DBUS_ENABLE_STATS)
+#if defined(DBUS_ENABLE_VERBOSE_MODE) || defined(DBUS_ENABLE_STATS) || defined(DBUS_ENABLE_EMBEDDED_TESTS)
static dbus_bool_t
append_key_and_escaped_value (DBusString *str, const char *token, const char *value)
{
@@ -311,7 +311,7 @@ match_rule_to_string (BusMatchRule *rule)
_dbus_string_free (&str);
return NULL;
}
-#endif /* defined(DBUS_ENABLE_VERBOSE_MODE) || defined(DBUS_ENABLE_STATS) */
+#endif /* defined(DBUS_ENABLE_VERBOSE_MODE) || defined(DBUS_ENABLE_STATS) || defined(DBUS_ENABLE_EMBEDDED_TESTS) */
dbus_bool_t
bus_match_rule_set_message_type (BusMatchRule *rule,