From 32817ef3432258e85547ac0f824afd871e8416d7 Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Mon, 3 Apr 2006 22:58:40 +0000
Subject: [PATCH] msvc tweaks, more to come.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1018 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 src/include/switch_platform.h | 1 +
 w32/vsnet/GetLibs.vbs         | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/include/switch_platform.h b/src/include/switch_platform.h
index 1d3b56c8a3..f4949d784b 100644
--- a/src/include/switch_platform.h
+++ b/src/include/switch_platform.h
@@ -39,6 +39,7 @@ extern "C" {
 #endif
 
 #ifdef WIN32
+#include <winsock2.h>
 typedef SOCKET switch_raw_socket_t;
 #else 
 typedef int switch_raw_socket_t;
diff --git a/w32/vsnet/GetLibs.vbs b/w32/vsnet/GetLibs.vbs
index 6c3a01d418..87eafc009b 100644
--- a/w32/vsnet/GetLibs.vbs
+++ b/w32/vsnet/GetLibs.vbs
@@ -247,7 +247,7 @@ Sub BuildLibs_aprutil(BuildDebug, BuildRelease)
 	End If 
 	If FSO.FolderExists(LibDestDir & "apr-util") Then 
 		If BuildDebug Then
-			If Not FSO.FileExists(LibDestDir & "apr-util\xml\expat\lib\Debug\xml.lib") Then 
+			If Not FSO.FileExists(LibDestDir & "apr-util\xml\expat\lib\LibD\xml.lib") Then 
 				BuildViaVCBuild LibDestDir & "apr-util\xml\expat\lib\xml.vcproj", "Debug"
 			End If
 			If Not FSO.FileExists(LibDestDir & "apr-util\Debug\libaprutil-1.lib") Then 
@@ -257,7 +257,7 @@ Sub BuildLibs_aprutil(BuildDebug, BuildRelease)
 			End If
 		End If
 		If BuildRelease Then
-			If Not FSO.FileExists(LibDestDir & "apr-util\xml\expat\lib\Release\xml.lib") Then 
+			If Not FSO.FileExists(LibDestDir & "apr-util\xml\expat\lib\LibR<p align="center"></p>\xml.lib") Then 
 				BuildViaVCBuild LibDestDir & "apr-util\xml\expat\lib\xml.vcproj", "Release"
 			End If
 			If Not FSO.FileExists(LibDestDir & "apr-util\Release\libaprutil-1.lib") Then