From b87130b601f3e3905bb002f62fe2e11db112a939 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 23 Mar 2015 23:51:35 +0000 Subject: [PATCH] Added check for HAVE_LIBGPGME in presence.c --- src/xmpp/presence.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xmpp/presence.c b/src/xmpp/presence.c index fcb6b937..a8418673 100644 --- a/src/xmpp/presence.c +++ b/src/xmpp/presence.c @@ -49,7 +49,9 @@ #include "xmpp/connection.h" #include "xmpp/stanza.h" #include "xmpp/xmpp.h" +#ifdef HAVE_LIBGPGME #include "pgp/gpg.h" +#endif static Autocomplete sub_requests_ac; @@ -226,6 +228,7 @@ presence_update(const resource_presence_t presence_type, const char * const msg, stanza_attach_status(ctx, presence, msg); +#ifdef HAVE_LIBGPGME char *account_name = jabber_get_account_name(); ProfAccount *account = accounts_get_account(account_name); if (account->pgp_keyid) { @@ -244,6 +247,7 @@ presence_update(const resource_presence_t presence_type, const char * const msg, free(signed_status); } +#endif stanza_attach_priority(ctx, presence, pri); stanza_attach_last_activity(ctx, presence, idle);