From 4c65d109ee2ced4a49a511ec185da11a8b27f069 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 7 May 2004 23:08:02 +0000 Subject: Don't forget to enable D-Bus support --- hcid/Makefile.am | 6 ++++-- hcid/dbus.c | 1 - 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 #include -#define DBUS_API_SUBJECT_TO_CHANGE #include #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; -- cgit