summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index f967b0fd3..7757708f1 100755
--- a/configure
+++ b/configure
@@ -1054,6 +1054,15 @@ elif sh ./hasgot -lnsl -lsocket socket socketpair bind listen accept connect; th
cclibs="$cclibs -lnsl -lsocket"
echo "#define HAS_SOCKETS" >> s.h
has_sockets=yes
+else
+ case "$target" in
+ *-*-mingw*)
+ inf "You have BSD sockets (with libraries '-lws2_32')"
+ cclibs="$cclibs -lws2_32"
+ echo "#define HAS_SOCKETS" >> s.h
+ has_sockets=yes ;;
+ *) ;;
+ esac
fi
if sh ./hasgot -i sys/socket.h -t socklen_t; then