提交 32cedb2d authored 作者: Stefan Knoblich's avatar Stefan Knoblich

switch_dso.c: FreeBSD(8.0) dlerror() returns const char*, add cast to char* to…

switch_dso.c: FreeBSD(8.0) dlerror() returns const char*, add cast to char* to avoid a warning (and abort due to -Werror)
上级 72ec7b59
......@@ -131,7 +131,7 @@ void *switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err)
dlerror();
if (!(addr = dlsym(lib, sym))) {
err_str = dlerror();
err_str = (char *)dlerror();
}
if (err_str) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论