From 722885fba96b4195479d4c335946f714beb119eb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 2 Feb 2009 21:59:53 +0000 Subject: [PATCH] Some mingws have AF_UNIX, which may have prevented our socketpair from working at all on them. Fix that. svn:r1098 --- evutil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/evutil.c b/evutil.c index 53cb75d3..8c8e506c 100644 --- a/evutil.c +++ b/evutil.c @@ -95,10 +95,11 @@ evutil_socketpair(int family, int type, int protocol, evutil_socket_t fd[2]) int saved_errno = -1; if (protocol + || (family != AF_INET #ifdef AF_UNIX - || family != AF_UNIX + && family != AF_UNIX #endif - ) { + )) { EVUTIL_SET_SOCKET_ERROR(WSAEAFNOSUPPORT); return -1; }