]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_enum doesn't crash windows now, still a bit to get it to work right.
authorMichael Jerris <mike@jerris.com>
Thu, 30 Nov 2006 23:47:30 +0000 (23:47 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 30 Nov 2006 23:47:30 +0000 (23:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3500 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_enum/mod_enum.c

index 863f6ce768af33836d84bc930033e04a82556b50..078b963f93d4d7300e5bf02626d8e4a6bc6e6fc6 100644 (file)
 #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;
        }