diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-07 19:52:16 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-07 19:52:16 +0200 |
commit | fd700992890bb582bff400f0afc69e811ebb49e7 (patch) | |
tree | f03155cea3a1027547200882fd5f0116921fdf3b | |
parent | 02e25d8d8404ae6303b151b64e83d47e41cb13dc (diff) | |
download | mpd-notification-fd700992890bb582bff400f0afc69e811ebb49e7.tar.gz mpd-notification-fd700992890bb582bff400f0afc69e811ebb49e7.tar.zst |
fix compilation with libnotify < 0.7.0
-rw-r--r-- | mpd-notification.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |