From dbde90715f140f50ca20b1d2941c11faff7cff0b Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 10 Nov 2015 16:28:29 +0100 Subject: [PATCH] Fix build without libnotify. --- gtk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/main.c b/gtk/main.c index 94ac81928..feda2f4d9 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -1226,12 +1226,12 @@ void linphone_gtk_notify(LinphoneCall *call, LinphoneChatMessage *chat_message, if (!notify_init ("Linphone")) ms_error("Libnotify failed to init."); #endif if (!call) { +#ifdef HAVE_NOTIFY if (chat_message) { const LinphoneAddress *address = linphone_chat_message_get_peer_address(chat_message); char *remote = linphone_address_as_string(address); make_notification(remote, linphone_chat_message_get_text(chat_message)); } else { -#ifdef HAVE_NOTIFY if (!notify_notification_show(notify_notification_new("Linphone",msg,NULL #ifdef HAVE_NOTIFY1 ,NULL