From fd700992890bb582bff400f0afc69e811ebb49e7 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 7 Jul 2013 19:52:16 +0200 Subject: fix compilation with libnotify < 0.7.0 --- mpd-notification.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mpd-notification.c b/mpd-notification.c index 60b62d6..416c019 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -56,7 +56,12 @@ int main(int argc, char ** argv) { exit(EXIT_FAILURE); } - notification = notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND); + notification = +#if NOTIFY_CHECK_VERSION(0, 7, 0) + notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND); +#else + notify_notification_new(TEXT_TOPIC, NULL, ICON_SOUND, NULL); +#endif notify_notification_set_category(notification, PROGNAME); notify_notification_set_urgency (notification, NOTIFY_URGENCY_NORMAL); -- cgit v1.2.3-54-g00ecf