1 |
ssuominen 11/01/30 09:41:45 |
2 |
|
3 |
Added: syslog-notify-0.1-libnotify-0.7.patch |
4 |
Log: |
5 |
Fix building with x11-libs/libnotify >= 0.7. |
6 |
|
7 |
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/syslog-notify/files/syslog-notify-0.1-libnotify-0.7.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: syslog-notify-0.1-libnotify-0.7.patch |
16 |
=================================================================== |
17 |
--- src/syslog-notify.c |
18 |
+++ src/syslog-notify.c |
19 |
@@ -66,7 +66,15 @@ |
20 |
close(fd); |
21 |
return; |
22 |
} |
23 |
+#ifdef NOTIFY_CHECK_VERSION |
24 |
+#if NOTIFY_CHECK_VERSION (0, 7, 0) |
25 |
+ notification=notify_notification_new(title,message,NULL); |
26 |
+#else |
27 |
notification=notify_notification_new(title,message,NULL,NULL); |
28 |
+#endif |
29 |
+#else |
30 |
+ notification=notify_notification_new(title,message,NULL,NULL); |
31 |
+#endif |
32 |
notify_notification_set_timeout(notification,NOTIFY_EXPIRES_DEFAULT); |
33 |
notify_notification_set_urgency(notification,NOTIFY_URGENCY_NORMAL); |
34 |
notify_notification_set_hint_string(notification,"x-canonical-append", |