From fd3e547ac2604c1ce776a59118865e869d561164 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 7 Jul 2013 19:47:33 +0200 Subject: fix compilation with libnotify < 0.7.0 --- udev-block-notify.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf