diff --git a/projects/VC90/SimGear.vcproj b/projects/VC90/SimGear.vcproj
index 24678e83..34aa5752 100644
--- a/projects/VC90/SimGear.vcproj
+++ b/projects/VC90/SimGear.vcproj
@@ -463,8 +463,6 @@
RelativePath="..\..\simgear\io\raw_socket.hxx"
>
-
-
@@ -1465,7 +1463,7 @@
RelativePath="..\..\simgear\scene\tgdb\userdata.hxx"
>
-
+
diff --git a/simgear/io/raw_socket.hxx b/simgear/io/raw_socket.hxx
index e3f50daf..1af74ce0 100644
--- a/simgear/io/raw_socket.hxx
+++ b/simgear/io/raw_socket.hxx
@@ -24,7 +24,10 @@
#define SG_IO_SOCKET_HXX
#include
-#include
+
+#if defined(__APPLE__) || defined(__FreeBSD__)
+# include
+#endif
namespace simgear
{