From 6531fbb0f3078fa2aec62cfbc3c2907ce7193a14 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 11 Jan 2020 20:27:16 +0100 Subject: [PATCH] mod_sip: Fix compilation without SIP support Make sure the T() macro is also defined when ejabberd is compiled without SIP support. Fixes #3143. --- src/mod_sip.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_sip.erl b/src/mod_sip.erl index 6e239b35b..f81ab006b 100644 --- a/src/mod_sip.erl +++ b/src/mod_sip.erl @@ -27,6 +27,7 @@ -protocol({rfc, 3261}). -include("logger.hrl"). +-include("translate.hrl"). -ifndef(SIP). -export([start/2, stop/1, depends/2, mod_options/1, mod_doc/0]). @@ -53,7 +54,6 @@ mod_options(_) -> mod_doc/0]). -include_lib("esip/include/esip.hrl"). --include("translate.hrl"). %%%=================================================================== %%% API