diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-01-27 21:16:26 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-01-27 21:18:07 +0100 |
commit | 49233dbc2f8b8442e8aa22c6bd82e27422240788 (patch) | |
tree | 7bda9c36ecdfdd55a0edb59c97f645bd8bf3e83e | |
parent | ac6672e9b38e69f251a8237fb70612a5455effa4 (diff) | |
download | ofono-49233dbc2f8b8442e8aa22c6bd82e27422240788.tar.bz2 |
Limit HFP plugin loading to D-Bus 1.3 only systems
-rw-r--r-- | plugins/hfp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |