forked from pool/collectd
f605ba4b85
fixes for 12.1- notify-desktop: fix compatibility with libnotify >= 0.7.0 - iptables plugin: use iptables library - ipvs plugin: disable for >= 12.1, as build fails currently - df plugin: skip duplicate entries, fixes "uc_update: Value too old" error - downgrading in-tree iproute2 from 2.6.38 to 2.6.37, as 2.6.38 causes an internal error in gcc - add pinba plugin (through protobuf-c support) - add rpmlintrc file to suppress false positives - add collectd-pkgconfig_libnotify_add_gtk.patch to fix building libnotify support on >= 11.4 - bump in-tree iproute2 to 2.6.38 - update to 4.10.3: * collectd: Threshold subsection: Handling of NAN values in the percentage calculation has been fixed * collectd, java plugin, ntpd plugin: Several diagnostic messages have been improved * curl_json plugin: Handling of arrays has been fixed. * libvirt plugin: A bug in reading the virtual CPU statistics has been fixed * processes plugin: Potentially erroneous behavior has been fixed in an error handling case * python plugin: Fix dispatching of values from Python scripts to collectd - changes from 4.10.2: * collectd: If including one configuration file fails, continue with the rest of the configuration if possible * collectd: Fix a bug in the read function scheduling. In rare cases read functions may not have been called as often as requested OBS-URL: https://build.opensuse.org/request/show/77989 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/collectd?expand=0&rev=4
19 lines
654 B
Diff
19 lines
654 B
Diff
diff --git a/src/notify_desktop.c b/src/notify_desktop.c
|
|
index 839bc61..31c2411 100644
|
|
--- a/src/notify_desktop.c
|
|
+++ b/src/notify_desktop.c
|
|
@@ -95,7 +95,13 @@ static int c_notify (const notification_t *n,
|
|
: (NOTIF_WARNING == n->severity) ? "WARNING"
|
|
: (NOTIF_OKAY == n->severity) ? "OKAY" : "UNKNOWN");
|
|
|
|
+#if (defined NOTIFY_CHECK_VERSION)
|
|
+#if NOTIFY_CHECK_VERSION(0, 7, 0)
|
|
+ notification = notify_notification_new (summary, n->message, NULL);
|
|
+#endif
|
|
+#else
|
|
notification = notify_notification_new (summary, n->message, NULL, NULL);
|
|
+#endif
|
|
if (NULL == notification) {
|
|
log_err ("Failed to create a new notification.");
|
|
return -1;
|