--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Network/Platform.hh Fri Jan 16 22:03:49 2009 +0200
@@ -0,0 +1,43 @@
+#ifndef NETWORK_PLATFORM_HH
+#define NETWORK_PLATFORM_HH
+
+/**
+ * @file
+ *
+ * Takes care of platform-specific imports and #defines as regards the Network code
+ */
+
+#ifndef WIN32
+ // NetworkAddress
+ #include <netinet/in.h>
+
+ // NetworkEndpoint
+ #include <sys/types.h>
+ #include <netdb.h>
+
+ // NetworkSocket
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+ #define closesocket close
+
+ // NetworkReactor
+ #include <sys/select.h>
+ #include <errno.h>
+
+ // misc, here because ClanLib included these...
+ #include <arpa/inet.h>
+ #include <sys/time.h>
+ #include <unistd.h>
+#else
+ // misc, here because ClanLib included these...
+ #include <winsock2.h>
+ #include <windows.h>
+ typedef int socklen_t;
+
+ #error "This network code won't compile on win32 :)"
+#endif
+
+
+#endif