From: Andrey Volk Date: Wed, 12 Sep 2018 21:14:20 +0000 (+0300) Subject: FS-11362: [mod_verto] Fix regression for the broken Windows build. X-Git-Tag: v1.8.2~1^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f72c99cd760060cb84d81a0e4791f7ad632a76b;p=thirdparty%2Ffreeswitch.git FS-11362: [mod_verto] Fix regression for the broken Windows build. --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index a22b3eabcd..7dc8336bd9 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -57,7 +57,9 @@ SWITCH_MODULE_DEFINITION(mod_verto, mod_verto_load, mod_verto_shutdown, mod_vert #include #include - +#ifdef WIN32 +#define strerror_r(errno, buf, len) strerror_s(buf, len, errno) +#endif #define die(...) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, __VA_ARGS__); goto error #define die_errno(fmt) do { char errbuf[BUFSIZ] = {0}; strerror_r(errno, (char *)&errbuf, sizeof(errbuf)); die(fmt ", errno=%d, %s\n", errno, (char *)&errbuf); } while(0)