提交 9f72c99c authored 作者: Andrey Volk's avatar Andrey Volk

FS-11362: [mod_verto] Fix regression for the broken Windows build.

上级 b6e0618a
......@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论