win32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the socklen_...
authorRanjit Mathew <rmathew@hotmail.com>
Thu, 13 Feb 2003 00:07:37 +0000 (00:07 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Thu, 13 Feb 2003 00:07:37 +0000 (00:07 +0000)
2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>

* include/win32.h: Include ws2tcpip.h instead of
winsock.h to obtain definition of the socklen_t type.
Remove IP_TOS definition - not needed with ws2tcpip.h
(_Jv_connect): Correct slight formatting error.

From-SVN: r62801

libjava/ChangeLog
libjava/include/win32.h

index 4fbf40cfa756784a9fc1f42d3763b8b12dd3105f..adb1ee2540a390e8e6ea1742be1046af7cf1729d 100644 (file)
@@ -1,3 +1,10 @@
+2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
+
+       * include/win32.h: Include ws2tcpip.h instead of
+       winsock.h to obtain definition of the socklen_t type.
+       Remove IP_TOS definition - not needed with ws2tcpip.h
+       (_Jv_connect): Correct slight formatting error.
+
 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
 
        * jni.cc (_Jv_LookupJNIMethod): Modify to accept the
index 1d06df0663c0065391d9aafa6207a00d7f252cb6..4330c79d397e2a705ba3330667925494fe9221dc 100644 (file)
@@ -1,6 +1,6 @@
 // win32.h -- Helper functions for Microsoft-flavored OSs.
 
-/* Copyright (C) 2002  Free Software Foundation
+/* Copyright (C) 2002, 2003  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -14,9 +14,7 @@ details.  */
 #include <windows.h>
 #undef STRICT
 
-#undef __INSIDE_CYGWIN__
-#include <winsock.h>
-#define IP_TOS 3
+#include <ws2tcpip.h>
 #include <gcj/cni.h>
 #include <java/util/Properties.h>
 
@@ -74,7 +72,7 @@ _Jv_socket (int domain, int type, int protocol)
 inline int
 _Jv_connect (jint fd, sockaddr *ptr, int len)
 {
-   return ::connect (fd, ptr, len);
+  return ::connect (fd, ptr, len);
 }
 
 inline int