From 4a651581d28baea5a55aeefde3aaae25b9b6b65f Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Mon, 22 Jan 2007 16:54:30 +0000
Subject: [PATCH] use closesocket on sockets.. not close

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4015 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 libs/iax/src/iax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/iax/src/iax.c b/libs/iax/src/iax.c
index 918c48632f..0c923ad0cd 100644
--- a/libs/iax/src/iax.c
+++ b/libs/iax/src/iax.c
@@ -949,7 +949,7 @@ int iax_init(char *ip, int preferredportno)
 #ifdef	WIN32
 	    flags = 1;
 	    if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
-		    _close(netfd);
+		    closesocket(netfd);
 		    netfd = -1;
 		    DEBU(G "Unable to set non-blocking mode.");
 		    IAXERROR "Unable to set non-blocking mode.");