When compiling with MinGW, link with ws2_32.
[tinc] / configure.in
index 79165e8..ce67855 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-dnl $Id: configure.in,v 1.13.2.79 2003/08/02 15:32:57 guus Exp $
+dnl $Id: configure.in,v 1.13.2.80 2003/08/02 16:05:33 guus Exp $
 
 AC_PREREQ(2.57)
 AC_INIT(src/tincd.c)
@@ -70,6 +70,7 @@ case $host_os in
   *mingw*)
     AC_DEFINE(HAVE_MINGW, 1, [MinGW])
     [ rm -f src/device.c; cp -f src/mingw/device.c src/device.c ]
+    LIBS="$LIBS -lws2_32"
   ;;
   *)
     AC_MSG_ERROR("Unknown operating system.")