summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-07 19:47:33 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-07 19:47:33 +0200
commitfd3e547ac2604c1ce776a59118865e869d561164 (patch)
treed37cc666edc46ad3ad69cbd6e2a33083438919cd
parentd83a4df90ad03107d26004ef889a25af6c1276c2 (diff)
downloadudev-block-notify-fd3e547ac2604c1ce776a59118865e869d561164.tar.gz
udev-block-notify-fd3e547ac2604c1ce776a59118865e869d561164.tar.zst
fix compilation with libnotify < 0.7.0
-rw-r--r--udev-block-notify.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c
index 08f07eb..995a885 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -52,7 +52,12 @@ NotifyNotification * get_notification(struct notifications *notifications, dev_t
notifications->next = malloc(sizeof(struct notifications));
notifications = notifications->next;
notifications->devnum = devnum;
- notifications->notification = notify_notification_new("", "", "");
+ notifications->notification =
+#if NOTIFY_CHECK_VERSION(0, 7, 0)
+ notify_notification_new(NULL, NULL, NULL);
+#else
+ notify_notification_new(NULL, NULL, NULL, NULL);
+#endif
notifications->next = NULL;
notify_notification_set_category(notifications->notification, PROGNAME);