Commit ea5a63a2 by Ranjit Mathew Committed by Tom Tromey

win32.h: Include ws2tcpip.h instead of winsock.h to obtain definition of the socklen_t type.

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
parent c6e2a538
2003-02-12 Ranjit Mathew <rmathew@hotmail.com> 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 * jni.cc (_Jv_LookupJNIMethod): Modify to accept the
size of the arguments for a JNI function. For Win32, size of the arguments for a JNI function. For Win32,
modify to search for all forms of possible exported modify to search for all forms of possible exported
......
// win32.h -- Helper functions for Microsoft-flavored OSs. // 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. This file is part of libgcj.
...@@ -14,9 +14,7 @@ details. */ ...@@ -14,9 +14,7 @@ details. */
#include <windows.h> #include <windows.h>
#undef STRICT #undef STRICT
#undef __INSIDE_CYGWIN__ #include <ws2tcpip.h>
#include <winsock.h>
#define IP_TOS 3
#include <gcj/cni.h> #include <gcj/cni.h>
#include <java/util/Properties.h> #include <java/util/Properties.h>
...@@ -74,7 +72,7 @@ _Jv_socket (int domain, int type, int protocol) ...@@ -74,7 +72,7 @@ _Jv_socket (int domain, int type, int protocol)
inline int inline int
_Jv_connect (jint fd, sockaddr *ptr, int len) _Jv_connect (jint fd, sockaddr *ptr, int len)
{ {
return ::connect (fd, ptr, len); return ::connect (fd, ptr, len);
} }
inline int inline int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment