From 98ab39f9621e8ee2acc6c3ed4dc68b276413b9b8 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 12 May 2015 16:39:02 +0200 Subject: [PATCH] Fix mod_log_chat and mod_cron compilation (thanks to Mathias Ertl)(#103) --- mod_cron/src/mod_cron.erl | 4 ++++ mod_log_chat/src/mod_log_chat.erl | 2 ++ 2 files changed, 6 insertions(+) diff --git a/mod_cron/src/mod_cron.erl b/mod_cron/src/mod_cron.erl index af473a9..092080c 100644 --- a/mod_cron/src/mod_cron.erl +++ b/mod_cron/src/mod_cron.erl @@ -25,7 +25,11 @@ -include("ejabberd_http.hrl"). -include("ejabberd_web_admin.hrl"). -include("logger.hrl"). +-ifdef(NO_EXT_LIB). -include("xml.hrl"). +-else. +-include_lib("p1_xml/include/xml.hrl"). +-endif. -record(task, {taskid, timerref, host, task}). diff --git a/mod_log_chat/src/mod_log_chat.erl b/mod_log_chat/src/mod_log_chat.erl index bcce2ae..79389ce 100644 --- a/mod_log_chat/src/mod_log_chat.erl +++ b/mod_log_chat/src/mod_log_chat.erl @@ -16,7 +16,9 @@ log_packet_send/3, log_packet_receive/4]). +-ifndef(LAGER). -define(LAGER, 1). +-endif. -include("ejabberd.hrl"). -include("logger.hrl").