* configure.ac: On MinGW, define USE_WIN32API and link with
[deliverable/binutils-gdb.git] / gdb / configure
index 39af594c87964696a9bb1cced2b3f9785caf0238..cd0acf7981921f1a26c02ca1015545755b8b2291 100755 (executable)
@@ -20034,6 +20034,18 @@ if test x$gdb_cv_os_cygwin = xyes; then
     esac
 fi
 
+# The ser-tcp.c module requires sockets.
+case ${host} in
+  *mingw32*)
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_WIN32API 1
+_ACEOF
+
+    WIN32LIBS="$WIN32LIBS -lws2_32"
+    ;;
+esac
+
 
 LIBGUI="../libgui/src/libgui.a"
 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
This page took 0.025471 seconds and 4 git commands to generate.