]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/tcp_client.cxx
Mac OS X fixes from Markus Morawitz
[simgear.git] / simgear / io / tcp_client.cxx
index 78548f53276d554f61a316598ca781bb4fcb623e..d1d7f8c7f9edc6e878bdf16a270871469bb2c47d 100644 (file)
@@ -1,14 +1,16 @@
 #include <simgear/compiler.h>
 #include STL_IOSTREAM
+
+#ifdef _WIN32
+#include <windows.h>
+#else
 #include <unistd.h>
+#endif
 
 #include <simgear/debug/logstream.hxx>
 
 #include "sg_socket.hxx"
 
-#ifndef SG_HAVE_NATIVE_SGI_COMPILERS
-using std::cout;
-#endif
 
 class TcpClient
 {
@@ -72,7 +74,11 @@ main()
     for (int i = 0; i < 3; ++i)
     {
        client.process();
+#ifdef _WIN32
+        Sleep(1000);
+#else
        sleep(1);
+#endif
     }
 
     //client.close();