1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 05:29:32 +00:00

dbus-glib: fix compile error when enable-tests

test-service-glib-include-glib-only.patch: fixes the compiling failure
that test-service-glib.c includes glib/gquark.h not glib.h directly.

[YOCTO #2762]

(From OE-Core rev: aefa55f3553f00753d1eb95905086bc12bc5bfaa)

Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yao Zhao
2012-07-17 16:10:05 -04:00
committed by Richard Purdie
parent 4f2da78be6
commit df64377dd5
2 changed files with 23 additions and 1 deletions
@@ -0,0 +1,20 @@
Fix the compiling error that not include glib.h directly.
upstream bugzilla link: https://bugs.freedesktop.org/show_bug.cgi?id=52210
Upstream-Status: Submitted
Signed-off-by: Yao Zhao <yao.zhao@windriver.com>
diff --git a/test/core/test-service-glib.c b/test/core/test-service-glib.c
index 3355890..7291f35 100644
--- a/test/core/test-service-glib.c
+++ b/test/core/test-service-glib.c
@@ -11,7 +11,7 @@
#include <string.h>
#include <glib/gi18n.h>
#include <glib-object.h>
-#include <glib/gquark.h>
+#include <glib.h>
#include "my-object.h"
#include "my-object-subclass.h"
+3 -1
View File
@@ -11,7 +11,9 @@ DEPENDS = "expat glib-2.0 virtual/libintl dbus-glib-native dbus"
DEPENDS_virtclass-native = "glib-2.0-native dbus-native"
SRC_URI = "http://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-${PV}.tar.gz \
file://no-examples.patch"
file://no-examples.patch \
file://test-service-glib-include-glib-only.patch \
"
inherit autotools pkgconfig gettext