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:
parent
fadc1ccebe
commit
fb447028bc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue