Consolidate definition of USE_WIN32API
[deliverable/binutils-gdb.git] / gdb / gdbserver / configure.ac
index 817a861a32bed36d413b891fb7d384863183bd05..fab765ea38df495ee2d9ceac066bf374e1dcd5b2 100644 (file)
@@ -248,21 +248,14 @@ esac
 if test "${srv_mingwce}" = "yes"; then
   LIBS="$LIBS -lws2"
 elif test "${srv_mingw}" = "yes"; then
-  LIBS="$LIBS -lws2_32"
+  # WIN32APILIBS is set by GDB_AC_COMMON.
+  LIBS="$LIBS $WIN32APILIBS"
 elif test "${srv_qnx}" = "yes"; then
   LIBS="$LIBS -lsocket"
 elif test "${srv_lynxos}" = "yes"; then
   LIBS="$LIBS -lnetinet"
 fi
 
-if test "${srv_mingw}" = "yes"; then
-  AC_DEFINE(USE_WIN32API, 1,
-           [Define if we should use the Windows API, instead of the
-            POSIX API.  On Windows, we use the Windows API when
-            building for MinGW, but the POSIX API when building
-            for Cygwin.])
-fi
-
 if test "${srv_linux_usrregs}" = "yes"; then
   AC_DEFINE(HAVE_LINUX_USRREGS, 1,
            [Define if the target supports PTRACE_PEEKUSR for register ]
This page took 0.025298 seconds and 4 git commands to generate.