[poky] [PATCH 11/17] matchbox-panel: Change function name "sync" to avoid conflict
Dongxiao Xu
dongxiao.xu at intel.com
Fri Nov 19 03:23:55 PST 2010
/usr/includes/unistd.h also has a function named sync().
Change sync() in matchbox-panel-2 to sync_applet().
Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
.../matchbox-panel-2/fix_sync_funcname.patch | 34 ++++++++++++++++++++
.../matchbox-panel-2/matchbox-panel-2_svn.bb | 5 ++-
2 files changed, 37 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-sato/matchbox-panel-2/matchbox-panel-2/fix_sync_funcname.patch
diff --git a/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2/fix_sync_funcname.patch b/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2/fix_sync_funcname.patch
new file mode 100644
index 0000000..25d08ed
--- /dev/null
+++ b/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2/fix_sync_funcname.patch
@@ -0,0 +1,34 @@
+Rename function sync to sync_applet to avoid conflict.
+
+Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
+
+diff -ruN matchbox-panel-2-orig/applets/showdesktop/showdesktop.c matchbox-panel-2/applets/showdesktop/showdesktop.c
+--- matchbox-panel-2-orig/applets/showdesktop/showdesktop.c 2010-11-17 20:59:46.000000000 +0800
++++ matchbox-panel-2/applets/showdesktop/showdesktop.c 2010-11-17 21:00:11.000000000 +0800
+@@ -57,7 +57,7 @@
+
+ /* Sync @applet with the _NET_SHOWING_DESKTOP root window property */
+ static void
+-sync (ShowDesktopApplet *applet)
++sync_applet (ShowDesktopApplet *applet)
+ {
+ GdkDisplay *display;
+ Atom type;
+@@ -103,7 +103,7 @@
+ if (xev->type == PropertyNotify) {
+ if (xev->xproperty.atom == applet->atom) {
+ /* _NET_SHOWING_DESKTOP changed */
+- sync (applet);
++ sync_applet (applet);
+ }
+ }
+
+@@ -145,7 +145,7 @@
+ applet);
+
+ /* Sync */
+- sync (applet);
++ sync_applet (applet);
+ }
+
+ /* Button clicked */
diff --git a/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_svn.bb b/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_svn.bb
index 4599863..f4ebcfb 100644
--- a/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_svn.bb
+++ b/meta/recipes-sato/matchbox-panel-2/matchbox-panel-2_svn.bb
@@ -13,14 +13,15 @@ DEPENDS += " ${@base_contains("MACHINE_FEATURES", "acpi", "libacpi", "",d)}"
DEPENDS += " ${@base_contains("MACHINE_FEATURES", "apm", "apmd", "",d)}"
PV = "0.0+svnr${SRCREV}"
-PR = "r5"
+PR = "r6"
RPROVIDES_${PN} = "matchbox-panel"
RREPLACES_${PN} = "matchbox-panel"
RCONFLICTS_${PN} = "matchbox-panel"
SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
- file://startup_fix.diff;patch=1"
+ file://startup_fix.diff;patch=1 \
+ file://fix_sync_funcname.patch"
EXTRA_OECONF = "--enable-startup-notification --enable-dbus"
EXTRA_OECONF += " ${@base_contains("MACHINE_FEATURES", "acpi", "--with-battery=acpi", "",d)}"
--
1.6.3.3
More information about the poky
mailing list