summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/BluetoothServer.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-09-19 08:33:38 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2012-09-19 08:33:38 +0200
commit61b37c8bf4d1f536cf591b5356e7e10bfe72052c (patch)
tree1410003faa8da68e5b3e1163cbed9d26d431aca6 /sd/source/ui/remotecontrol/BluetoothServer.cxx
parent24761a6fd7ec028ad94f5b0c9993e0ac804bdee7 (diff)
Add definition for G_VALUE_INIT as it doesn't exist for glib < 2.30.
Change-Id: I48999baf1c6387c68d0a36f618e6e1d5a9e12b07
Diffstat (limited to 'sd/source/ui/remotecontrol/BluetoothServer.cxx')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index c859f953e1cd..352275db4017 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -17,6 +17,10 @@
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
#define DBUS_TYPE_G_STRING_ANY_HASHTABLE (dbus_g_type_get_map( "GHashTable", G_TYPE_STRING, G_TYPE_VALUE ))
+
+#ifndef G_VALUE_INIT
+ #define G_VALUE_INIT {0,{{0}}} // G_VALUE_INIT only present in glib >= 2.30
+#endif
#endif
#ifdef WIN32