]> err.no Git - mapper/commitdiff
BluetoothScan: Add D-Bus items only if required
authorKaj-Michael Lang <milang@tal.org>
Thu, 15 May 2008 15:55:17 +0000 (18:55 +0300)
committerKaj-Michael Lang <milang@tal.org>
Thu, 15 May 2008 15:55:17 +0000 (18:55 +0300)
src/bluetooth-scan.h

index bccc3ef53ad65b34191a446db8cc97dd887115ea..0645f9a53c6493d8c452ffcc0ef29dc7b5e44b1e 100644 (file)
@@ -3,7 +3,9 @@
 
 #include "config.h"
 
+#if defined(WITH_HILDON_DBUS_BT) || defined(WITH_BLUEZ_DBUS_BT)
 #include <dbus/dbus-glib.h>
+#endif
 
 #include "utils.h"
 #include "gps.h"
@@ -17,7 +19,7 @@ struct _ScanInfo {
        GtkWidget *banner;
        GtkListStore *store;
        guint sid;
-#ifdef WITH_HILDON_DBUS_BT
+#if defined(WITH_HILDON_DBUS_BT) || defined(WITH_BLUEZ_DBUS_BT)
        DBusGProxy *req_proxy;
        DBusGProxy *sig_proxy;
 #endif