mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-11732 [mod_kazoo] check otp version for ei_init
This commit is contained in:
@@ -13,7 +13,7 @@ mod_kazoo_la_SOURCES += kazoo_ei_config.c kazoo_ei_utils.c kazoo_event_stream.c
|
||||
mod_kazoo_la_SOURCES += kazoo_fetch_agent.c kazoo_node.c
|
||||
mod_kazoo_la_SOURCES += kazoo_endpoints.c
|
||||
|
||||
mod_kazoo_la_CFLAGS = $(AM_CFLAGS) @ERLANG_CFLAGS@ -D_REENTRANT
|
||||
mod_kazoo_la_CFLAGS = $(AM_CFLAGS) @ERLANG_CFLAGS@ -D_REENTRANT -DERLANG_VERSION=@ERLANG_VERSION@ -DERLANG_MAJOR=@ERLANG_MAJOR@ -DERLANG_MINOR=@ERLANG_MINOR@
|
||||
mod_kazoo_la_LIBADD = $(KAZOO_DEFS) $(switch_builddir)/libfreeswitch.la
|
||||
mod_kazoo_la_LDFLAGS = -avoid-version -module -no-undefined -shared @ERLANG_LDFLAGS@
|
||||
|
||||
|
||||
@@ -519,7 +519,9 @@ switch_status_t create_acceptor() {
|
||||
char ipbuf[48];
|
||||
const char *ip_addr;
|
||||
|
||||
#if ERLANG_MAJOR >= 10
|
||||
ei_init();
|
||||
#endif
|
||||
|
||||
/* if the config has specified an erlang release compatibility then pass that along to the erlang interface */
|
||||
if (kazoo_globals.ei_compat_rel) {
|
||||
|
||||
Reference in New Issue
Block a user