From 49233dbc2f8b8442e8aa22c6bd82e27422240788 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 27 Jan 2010 21:16:26 +0100 Subject: [PATCH] Limit HFP plugin loading to D-Bus 1.3 only systems --- plugins/hfp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/hfp.c b/plugins/hfp.c index 12b7f0ae..947bfc29 100644 --- a/plugins/hfp.c +++ b/plugins/hfp.c @@ -811,6 +811,9 @@ static int hfp_init(void) { int err; + if (DBUS_TYPE_UNIX_FD < 0) + return -EBADF; + connection = ofono_dbus_get_connection(); added_watch = g_dbus_add_signal_watch(connection, NULL, NULL,