summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2008-03-18 18:07:51 +0000
committerKhem Raj <raj.khem@gmail.com>2008-03-18 18:07:51 +0000
commit1ae44d3816762cfc8b2f05dc18d0b15e605bac5a (patch)
tree378bf79768d3e73e9936559e89fe567fa46d1888
parentf68f0ea7cad972fd0cbc89f95b24d5a2ebf55f5f (diff)
Fix libeventdb compilation error. Patch from Andrew Paulsen
-rw-r--r--packages/libeventdb/libeventdb-0.90/.mtn2git_empty0
-rw-r--r--packages/libeventdb/libeventdb-0.90/libeventdb-unbreak-LIVE-macro.patch11
-rw-r--r--packages/libeventdb/libeventdb_0.90.bb3
3 files changed, 13 insertions, 1 deletions
diff --git a/packages/libeventdb/libeventdb-0.90/.mtn2git_empty b/packages/libeventdb/libeventdb-0.90/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/libeventdb/libeventdb-0.90/.mtn2git_empty
diff --git a/packages/libeventdb/libeventdb-0.90/libeventdb-unbreak-LIVE-macro.patch b/packages/libeventdb/libeventdb-0.90/libeventdb-unbreak-LIVE-macro.patch
new file mode 100644
index 0000000000..e5da0afc89
--- /dev/null
+++ b/packages/libeventdb/libeventdb-0.90/libeventdb-unbreak-LIVE-macro.patch
@@ -0,0 +1,11 @@
+--- libeventdb-0.90/event.h.orig 2008-03-13 23:05:10.000000000 -0700
++++ libeventdb-0.90/event.h 2008-03-13 23:05:40.000000000 -0700
+@@ -130,7 +130,7 @@ extern GSList *event_list (EventSource *
+ GError **error)
+ __attribute__ ((visibility ("hidden")));
+
+-#define LIVE(ev) (g_assert (! EVENT (ev)->dead))
++#define LIVE(ev) G_STMT_START { g_assert (! EVENT (ev)->dead); } G_STMT_END
+
+ /* Marks the event as well as the calendar in which lives as
+ modified. */
diff --git a/packages/libeventdb/libeventdb_0.90.bb b/packages/libeventdb/libeventdb_0.90.bb
index 1c9d3ab4bc..f26780ccea 100644
--- a/packages/libeventdb/libeventdb_0.90.bb
+++ b/packages/libeventdb/libeventdb_0.90.bb
@@ -1,3 +1,4 @@
require libeventdb.inc
-PR = "r1"
+PR = "r2"
+SRC_URI += "file://libeventdb-unbreak-LIVE-macro.patch;patch=1"