diff options
Diffstat (limited to 'app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch')
-rw-r--r-- | app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch b/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch deleted file mode 100644 index 92b01b1..0000000 --- a/app-admin/collectd/files/collectd-4.10.2-libnotify-0.7.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- src/notify_desktop.c -+++ src/notify_desktop.c -@@ -31,6 +31,10 @@ - #include <glib.h> - #include <libnotify/notify.h> - -+#ifndef NOTIFY_CHECK_VERSION -+#define NOTIFY_CHECK_VERSION(x,y,z) 0 -+#endif -+ - #define log_info(...) INFO ("notify_desktop: " __VA_ARGS__) - #define log_warn(...) WARNING ("notify_desktop: " __VA_ARGS__) - #define log_err(...) ERROR ("notify_desktop: " __VA_ARGS__) -@@ -95,7 +99,12 @@ - : (NOTIF_WARNING == n->severity) ? "WARNING" - : (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN"); - -- notification = notify_notification_new (summary, n->message, NULL, NULL); -+ notification = notify_notification_new (summary, n->message, NULL -+#if NOTIFY_CHECK_VERSION (0, 7, 0) -+ ); -+#else -+ , NULL); -+#endif - if (NULL == notification) { - log_err ("Failed to create a new notification."); - return -1; |