提交 fb447028 authored 作者: Michael Jerris's avatar Michael Jerris

mod_enum doesn't crash windows now, still a bit to get it to work right.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3500 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 fadc1cce
......@@ -32,6 +32,10 @@
#include <switch.h>
#include <udns.h>
#ifndef WIN32
#define closesocket close
#endif
static const char modname[] = "mod_enum";
struct enum_record {
......@@ -495,7 +499,7 @@ static switch_status_t enum_lookup(char *root, char *in, enum_record_t **results
done:
if (fd > -1) {
close(fd);
closesocket(fd);
fd = -1;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论