diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 2682a2e..bc550b7 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
void media_transport_update_delay(struct media_transport *transport,
uint16_t delay)
{
+#ifdef HAVE_A2DP
struct a2dp_transport *a2dp = transport->data;
/* Check if delay really changed */
g_dbus_emit_property_changed(btd_get_dbus_connection(),
transport->path,
MEDIA_TRANSPORT_INTERFACE, "Delay");
+#endif /* HAVE_A2DP */
}
struct btd_device *media_transport_get_dev(struct media_transport *transport)