summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-01-30 09:41:45 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-01-30 09:41:45 +0000
commit0a5e2c0d29293e933adf144680c7aae3b1ed2732 (patch)
tree3a67c3b80fcc308ef8445c281d3afcef9d7955e3 /sys-apps/syslog-notify/files
parenttidy patches (diff)
downloadgentoo-2-0a5e2c0d29293e933adf144680c7aae3b1ed2732.tar.gz
gentoo-2-0a5e2c0d29293e933adf144680c7aae3b1ed2732.tar.bz2
gentoo-2-0a5e2c0d29293e933adf144680c7aae3b1ed2732.zip
Fix building with x11-libs/libnotify >= 0.7.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/syslog-notify/files')
-rw-r--r--sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch b/sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch
new file mode 100644
index 000000000000..acefdd765c20
--- /dev/null
+++ b/sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch
@@ -0,0 +1,18 @@
+--- src/syslog-notify.c
++++ src/syslog-notify.c
+@@ -66,7 +66,15 @@
+ close(fd);
+ return;
+ }
++#ifdef NOTIFY_CHECK_VERSION
++#if NOTIFY_CHECK_VERSION (0, 7, 0)
++ notification=notify_notification_new(title,message,NULL);
++#else
+ notification=notify_notification_new(title,message,NULL,NULL);
++#endif
++#else
++ notification=notify_notification_new(title,message,NULL,NULL);
++#endif
+ notify_notification_set_timeout(notification,NOTIFY_EXPIRES_DEFAULT);
+ notify_notification_set_urgency(notification,NOTIFY_URGENCY_NORMAL);
+ notify_notification_set_hint_string(notification,"x-canonical-append",