* configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
* configure. Regenerate.
* include/win32.h: Explicitly include winsock2.h
* win32.cc (_Jv_platform_initialize): Require version 2.2 of
Winsock api.
From-SVN: r85401
+2004-08-01 Danny Smith <dannysmith@users.sourceforge.net>
+
+ PR libgcj/16814
+ * configure.in [host *mingw*] (SYSTEMSPEC): Remove -lwsock32.
+ * configure. Regenerate.
+ * include/win32.h: Explicitly include winsock2.h
+ * win32.cc (_Jv_platform_initialize): Require version 2.2 of
+ Winsock api.
+
2004-07-30 Michael Koch <konqueror@gmx.de>
* java/util/zip/GZIPInputStream.java
case "${host}" in
*mingw*)
- SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
+ SYSTEMSPEC="-lgdi32 -lws2_32"
if test "${with_win32_nlsapi}" = "unicows"; then
SYSTEMSPEC="-lunicows $SYSTEMSPEC"
fi
case "${host}" in
*mingw*)
- SYSTEMSPEC="-lgdi32 -lwsock32 -lws2_32"
+ SYSTEMSPEC="-lgdi32 -lws2_32"
if test "${with_win32_nlsapi}" = "unicows"; then
SYSTEMSPEC="-lunicows $SYSTEMSPEC"
fi
// Includes
#define WIN32_LEAN_AND_MEAN
+// Force Winsock 2 interface.
+#include <winsock2.h>
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#undef STRICT
{
// Initialise winsock for networking
WSADATA data;
- if (WSAStartup (MAKEWORD (1, 1), &data))
+ if (WSAStartup (MAKEWORD (2, 2), &data))
MessageBox (NULL, _T("Error initialising winsock library."), _T("Error"),
MB_OK | MB_ICONEXCLAMATION);