about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-07 14:07:38 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-07 14:07:38 +0200
commitbddbfa58c01b97e7134e9acdb266855af2a4ddac (patch)
tree328682f5112b79695015bfd9df7c7277824bdc50 /src
parenta4cadf78faabc157e5db00e42302d495bba432c0 (diff)
downloadprofani-tty-bddbfa58c01b97e7134e9acdb266855af2a4ddac.tar.gz
OX: Fix tests
Fix:
```
/usr/bin/ld: src/xmpp/ox.o: in function `ox_announce_public_key':
src/xmpp/ox.c:90: undefined reference to `p_ox_gpg_readkey'
```
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/ox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmpp/ox.c b/src/xmpp/ox.c
index c1901085..1ece9fde 100644
--- a/src/xmpp/ox.c
+++ b/src/xmpp/ox.c
@@ -42,7 +42,7 @@
 #include "xmpp/stanza.h"
 #include "pgp/gpg.h"
 
-
+#ifdef HAVE_LIBGPGME
 static void _ox_metadata_node__public_key(const char* const fingerprint);
 
 /*!
@@ -216,3 +216,4 @@ char* _gettimestamp() {
     return strdup(d->str);
 }
 
+#endif // HAVE_LIBGPGME