From ad7db399999b647bfb18a25a622069f31c3dd730 Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 25 Jun 2019 14:54:47 +0000 Subject: [PATCH] FS-11732 [mod_kazoo] ei_init added in OTP 21.3 --- src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c b/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c index 7a2e62c925..c1b792f490 100644 --- a/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c +++ b/src/mod/event_handlers/mod_kazoo/kazoo_ei_utils.c @@ -519,8 +519,8 @@ switch_status_t create_acceptor() { char ipbuf[48]; const char *ip_addr; -#if ERLANG_MAJOR >= 10 - ei_init(); +#if (ERLANG_MAJOR == 10 && ERLANG_MINOR >= 3) || ERLANG_MAJOR >= 11 + ei_init(); #endif /* if the config has specified an erlang release compatibility then pass that along to the erlang interface */