]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11362: [mod_verto] Fix regression for the broken Windows build.
authorAndrey Volk <andywolk@gmail.com>
Wed, 12 Sep 2018 21:14:20 +0000 (00:14 +0300)
committerAndrey Volk <andywolk@gmail.com>
Wed, 12 Sep 2018 21:14:20 +0000 (00:14 +0300)
src/mod/endpoints/mod_verto/mod_verto.c

index a22b3eabcd75da3d2ecf5c821a346ddca9624bbb..7dc8336bd9845efde73002a1541fe299209f9bc3 100644 (file)
@@ -57,7 +57,9 @@ SWITCH_MODULE_DEFINITION(mod_verto, mod_verto_load, mod_verto_shutdown, mod_vert
 #include <ctype.h>
 #include <sys/stat.h>
 
-
+#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)