diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-05-07 23:08:02 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-05-07 23:08:02 +0000 |
commit | 4c65d109ee2ced4a49a511ec185da11a8b27f069 (patch) | |
tree | 80caee6a1b37c10b6909b02e2e4f174aa4a80d6a /hcid | |
parent | e58717d76bcba3ac0ee6cc5a4e6a03d5d307c0d9 (diff) |
Don't forget to enable D-Bus support
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/Makefile.am | 6 | ||||
-rw-r--r-- | hcid/dbus.c | 1 | ||||
-rw-r--r-- | hcid/main.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am index 3a5e766a..3cbdfaa2 100644 --- a/hcid/Makefile.am +++ b/hcid/Makefile.am @@ -7,9 +7,11 @@ sbin_PROGRAMS = hcid if DBUS dbus_hcid_sources = dbus.c dbus_hcid_ldflags = @DBUS_LIBS@ +dbus_hcid_cflags = -DENABLE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE else dbus_hcid_sources = dbus_hcid_ldflags = +dbus_hcid_cflags = endif hcid_SOURCES = main.c security.c hcid.h lib.c lib.h parser.h parser.y lexer.l kword.h kword.c glib-ectomy.h glib-ectomy.c $(dbus_hcid_sources) @@ -17,11 +19,11 @@ hcid_CONFIG = hcid.conf LDFLAGS = $(dbus_hcid_ldflags) @BLUEZ_LIBS@ -INCLUDES = @BLUEZ_INCLUDES@ @DBUS_INCLUDES@ +INCLUDES = @BLUEZ_INCLUDES@ @DBUS_INCLUDES@ $(dbus_hcid_cflags) man_MANS = hcid.8 hcid.conf.5 -YFLAGS = -d +YFLAGS = -d CLEANFILES = lexer.c parser.c parser.h diff --git a/hcid/dbus.c b/hcid/dbus.c index a1756cc6..7ef7ac73 100644 --- a/hcid/dbus.c +++ b/hcid/dbus.c @@ -40,7 +40,6 @@ #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> -#define DBUS_API_SUBJECT_TO_CHANGE #include <dbus/dbus.h> #include "glib-ectomy.h" diff --git a/hcid/main.c b/hcid/main.c index c679159d..be523a19 100644 --- a/hcid/main.c +++ b/hcid/main.c @@ -506,7 +506,7 @@ int main(int argc, char *argv[], char *env[]) /* Start logging to syslog and stderr */ openlog("hcid", LOG_PID | LOG_NDELAY | LOG_PERROR, LOG_DAEMON); - syslog(LOG_INFO, "HCI daemon ver %s started", VERSION); + syslog(LOG_INFO, "Bluetooth HCI daemon"); memset(&sa, 0, sizeof(sa)); sa.sa_flags = SA_NOCLDSTOP; |