From b45a2f351ee10e1550423dd1fe9038ba5c723f33 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 20 Mar 2016 00:11:06 -0500 Subject: [PATCH] configure: check -lws2_32 for socket() too --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a33cbcc7f..408c0868e 100644 --- a/configure.ac +++ b/configure.ac @@ -141,7 +141,7 @@ AC_CHECK_SIZEOF(long long) dnl Networking Functions dnl ==================== -AC_SEARCH_LIBS(socket, socket, , [AC_MSG_ERROR([You have no socket()! Aborting.])]) +AC_SEARCH_LIBS(socket, [socket ws2_32], , [AC_MSG_ERROR([You have no socket()! Aborting.])]) dnl SunOS/Solaris required libnsl for inet_ntoa() if test x"$SUN" = xyes; then