summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--macros/neon.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 0d74014..d288daa 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -502,7 +502,8 @@ char *stpcpy(char *, const char *);
# Unixware 7 can only link gethostbyname with -lnsl -lsocket
# Pick up -lsocket first, then the gethostbyname check will work.
# QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
-NE_SEARCH_LIBS(socket, socket inet)
+# CygWin/Winsock2 has it in -lws2_32, allegedly.
+NE_SEARCH_LIBS(socket, socket inet ws2_32)
NE_SEARCH_LIBS(gethostbyname, socket nsl bind)
# Enable getaddrinfo() support only if all the necessary functions