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
This commit is contained in:
Michael Jerris 2006-11-30 23:47:30 +00:00
parent fadc1ccebe
commit fb447028bc
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}