From 0d68487f10de1783974a41592526e6df55cf97e9 Mon Sep 17 00:00:00 2001 From: "Andrzej J.R. Hunt" Date: Thu, 23 Aug 2012 11:41:36 +0200 Subject: Disable bluetooth on Linux for glib < 2.26. Change-Id: If5fae4166b2f935f5d7613799370dd0de28b498c --- sd/source/ui/remotecontrol/BluetoothServer.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx index 556bc590f717..a2de11ce351f 100644 --- a/sd/source/ui/remotecontrol/BluetoothServer.cxx +++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx @@ -10,6 +10,7 @@ #include #ifdef LINUX +#include #include #include #include @@ -53,6 +54,7 @@ struct oslSocketImpl { void BluetoothServer::execute() { #ifdef LINUX +#ifdef GLIB_VERSION_2_26 g_type_init(); GError* aError = NULL; GDBusConnection* aConnection = g_bus_get_sync( G_BUS_TYPE_SYSTEM, NULL, &aError ); @@ -191,7 +193,8 @@ void BluetoothServer::execute() } -#endif +#endif // GLIB_VERSION_2_26 +#endif // LINUX #ifdef WIN32 -- cgit