summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2004-10-02 22:17:18 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2004-10-02 22:17:18 +0000
commit0b221d42517b5c351bc60958a5a0b52d42cc4ed5 (patch)
tree1a0cd251407b539cf05cfe024c81687bc467c7fc
parentc6516f281870f3a84954c2cc28e8ddbbf5fa3322 (diff)
downloadneon-0b221d42517b5c351bc60958a5a0b52d42cc4ed5.tar.gz
* macros/neon.m4: Check for socket() in ws2_32 for CygWin.
git-svn-id: http://svn.webdav.org/repos/projects/neon/branches/0.24.x@267 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-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