[PATCH 5/9] xfree86: drop double-typedef of DBusConnection
Peter Hutterer
peter.hutterer at who-t.net
Thu Oct 30 16:52:42 PDT 2014
Just include dbus.h, it's been typedef'd there since 2003.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
hw/xfree86/common/Makefile.am | 4 ++++
include/dbus-core.h | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/hw/xfree86/common/Makefile.am b/hw/xfree86/common/Makefile.am
index 7a2b4bc..54e7f4d 100644
--- a/hw/xfree86/common/Makefile.am
+++ b/hw/xfree86/common/Makefile.am
@@ -103,4 +103,8 @@ if LNXACPI
XORG_CFLAGS += -DHAVE_ACPI
endif
+if NEED_DBUS
+XORG_CFLAGS += $(DBUS_CFLAGS)
+endif
+
AM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS)
diff --git a/include/dbus-core.h b/include/dbus-core.h
index b2d6d1b..d6260dc 100644
--- a/include/dbus-core.h
+++ b/include/dbus-core.h
@@ -27,7 +27,7 @@
#define DBUS_CORE_H
#ifdef NEED_DBUS
-typedef struct DBusConnection DBusConnection;
+#include <dbus/dbus.h>
typedef void (*dbus_core_connect_hook) (DBusConnection * connection,
void *data);
--
2.1.0
More information about the xorg-devel
mailing list