about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-03-23 23:51:35 +0000
committerJames Booth <boothj5@gmail.com>2015-03-23 23:51:35 +0000
commitb87130b601f3e3905bb002f62fe2e11db112a939 (patch)
tree85489118ef34262237593dc34f92cc10ba067dee
parent027fa2a7005a475154a344cf0a886e8b9d3962de (diff)
downloadprofani-tty-b87130b601f3e3905bb002f62fe2e11db112a939.tar.gz
Added check for HAVE_LIBGPGME in presence.c
-rw-r--r--src/xmpp/presence.c4
1 files changed, 4 insertions, 0 deletions
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);