about summary refs log tree commit diff stats
path: root/src/xmpp/form.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-21 21:40:04 +0100
committerJames Booth <boothj5@gmail.com>2015-09-21 21:40:04 +0100
commit2b88e2f1bffca2800b521214df6009da673a0835 (patch)
tree5b47f219c6c8bb52fed4d7eb319383d9f812d324 /src/xmpp/form.c
parent14edbe17701e764ff36f2440b4143af8c522380a (diff)
downloadprofani-tty-2b88e2f1bffca2800b521214df6009da673a0835.tar.gz
Check for libmesode, fall back to libstrophe
Diffstat (limited to 'src/xmpp/form.c')
-rw-r--r--src/xmpp/form.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/xmpp/form.c b/src/xmpp/form.c
index e6213b64..fdec2a49 100644
--- a/src/xmpp/form.c
+++ b/src/xmpp/form.c
@@ -32,10 +32,18 @@
  *
  */
 
+#include "config.h"
+
 #include <string.h>
 #include <stdlib.h>
 
+#ifdef HAVE_LIBMESODE
+#include <mesode.h>
+#endif
+#ifdef HAVE_LIBSTROPHE
 #include <strophe.h>
+#endif
+
 #include <glib.h>
 
 #include "log.h"
@@ -714,4 +722,4 @@ form_reset_autocompleters(DataForm *form)
         autocomplete_reset(field->value_ac);
         curr_field = g_slist_next(curr_field);
     }
-}
\ No newline at end of file
+}