* configure.ac: Use `ws2_32' library for srv_mingw.

* configure: Regenerate.
	* gdbreplay.c: Include winsock2.h instead of winsock.h.
	* remote-utils.c: Likewise.
This commit is contained in:
Pierre Muller 2010-04-17 20:43:13 +00:00
parent ed41462c79
commit 12ea4b6986
5 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
* configure.ac: Use `ws2_32' library for srv_mingw.
* configure: Regenerate.
* gdbreplay.c: Include winsock2.h instead of winsock.h.
* remote-utils.c: Likewise.
2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
* linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only

View File

@ -4056,7 +4056,7 @@ esac
if test "${srv_mingwce}" = "yes"; then
LIBS="$LIBS -lws2"
elif test "${srv_mingw}" = "yes"; then
LIBS="$LIBS -lwsock32"
LIBS="$LIBS -lws2_32"
elif test "${srv_qnx}" = "yes"; then
LIBS="$LIBS -lsocket"
fi

View File

@ -118,7 +118,7 @@ esac
if test "${srv_mingwce}" = "yes"; then
LIBS="$LIBS -lws2"
elif test "${srv_mingw}" = "yes"; then
LIBS="$LIBS -lwsock32"
LIBS="$LIBS -lws2_32"
elif test "${srv_qnx}" = "yes"; then
LIBS="$LIBS -lsocket"
fi

View File

@ -59,7 +59,7 @@
#endif
#if USE_WIN32API
#include <winsock.h>
#include <winsock2.h>
#endif
#ifndef HAVE_SOCKLEN_T

View File

@ -63,7 +63,7 @@
#endif
#if USE_WIN32API
#include <winsock.h>
#include <winsock2.h>
#endif
#if __QNX__