summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2021-04-10 17:32:55 +0200
committerBadlop <badlop@process-one.net>2021-04-14 17:12:08 +0200
commitb860a25c82515ba51b044e13ea4e040e3b9bbc41 (patch)
treef183f0248057e6b2927ee26d5a1d77dce621c4fc /mix.exs
parentUse Dockerfile (diff)
When using OTP 24.0, use the new 'application' record definition (#3568)
This fixes "ejabberdctl update_list", "update", and the equivalent feature on ejabberd's WebAdmin that got broken when using Erlang/OTP 24
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs1
1 files changed, 1 insertions, 0 deletions
diff --git a/mix.exs b/mix.exs
index 6d50b2ce..4200325c 100644
--- a/mix.exs
+++ b/mix.exs
@@ -71,6 +71,7 @@ defmodule Ejabberd.Mixfile do
if_version_below('23', [{:d, :USE_OLD_CRYPTO_HMAC}]) ++
if_version_below('23', [{:d, :USE_OLD_PG2}]) ++
if_version_below('24', [{:d, :COMPILER_REPORTS_ONLY_LINES}]) ++
+ if_version_below('24', [{:d, :SYSTOOLS_APP_DEF_WITHOUT_OPTIONAL}]) ++
if_function_exported(:erl_error, :format_exception, 6, [{:d, :HAVE_ERL_ERROR}])
defines = for {:d, value} <- result, do: {:d, value}
result ++ [{:d, :ALL_DEFS, defines}]