[Freeswitch-svn] [commit] r3500 - freeswitch/trunk/src/mod/applications/mod_enum

Freeswitch SVN mikej at freeswitch.org
Thu Nov 30 18:47:30 EST 2006


Author: mikej
Date: Thu Nov 30 18:47:30 2006
New Revision: 3500

Modified:
   freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c

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

Modified: freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_enum/mod_enum.c	Thu Nov 30 18:47:30 2006
@@ -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 @@
  done:
 
 	if (fd > -1) {
-		close(fd);
+		closesocket(fd);
 		fd = -1;
 	}
 



More information about the Freeswitch-svn mailing list