mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Some mingws have AF_UNIX, which may have prevented our socketpair from working at all on them. Fix that.
svn:r1098
This commit is contained in:
parent
3502a472b5
commit
722885fba9
5
evutil.c
5
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user