X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fmodules%2Fjabber%2Fserv_xmpp.c;h=3b448fbf491eec93ea7b9e8755ef9ca6a664ddcb;hp=6fa8a66b9172ee5105979dd8aa045d043c6a47b8;hb=cf934431c7c8c1091b38c0b374f6a3b9293841ca;hpb=1d70c160be9a9f3f6e3c211dcfb131563dcc103f diff --git a/citadel/modules/jabber/serv_xmpp.c b/citadel/modules/jabber/serv_xmpp.c index 6fa8a66b9..3b448fbf4 100644 --- a/citadel/modules/jabber/serv_xmpp.c +++ b/citadel/modules/jabber/serv_xmpp.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "citadel.h" #include "server.h" #include "citserver.h" @@ -46,9 +47,6 @@ #include "internet_addressing.h" #include "md5.h" #include "ctdl_module.h" - -#ifdef HAVE_EXPAT -#include #include "serv_xmpp.h" struct xmpp_event *xmpp_queue = NULL; @@ -475,12 +473,9 @@ void xmpp_logout_hook(void) { const char *CitadelServiceXMPP="XMPP"; -#endif /* HAVE_EXPAT */ - CTDL_MODULE_INIT(jabber) { if (!threading) { -#ifdef HAVE_EXPAT CtdlRegisterServiceHook(config.c_xmpp_c2s_port, NULL, xmpp_greeting, @@ -492,9 +487,6 @@ CTDL_MODULE_INIT(jabber) CtdlRegisterSessionHook(xmpp_logout_hook, EVT_LOGOUT); CtdlRegisterSessionHook(xmpp_login_hook, EVT_UNSTEALTH); CtdlRegisterSessionHook(xmpp_logout_hook, EVT_STEALTH); - #else - lprintf(CTDL_INFO, "This server is missing the Expat XML parser. Jabber service will be disabled.\n"); -#endif } /* return our Subversion id for the Log */