< prev index next >

src/hotspot/share/utilities/ostream.cpp

8199736: Define WIN32_LEAN_AND_MEAN before including windows.h
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #endif
+#if defined(_WINDOWS)
+#include <winsock2.h>
+#endif
 
 // Network access
 networkStream::networkStream() : bufferedStream(1024*10, 1024*10) {
 
   _socket = -1;
    
< prev index next >