Minix doesn't support getsockopt on UDP sockets or send/recv on TCP

sockets.
This commit is contained in:
Dan Fandrich
2007-09-05 22:01:57 +00:00
parent 73e91ce20c
commit 8147c3659d
2 changed files with 22 additions and 2 deletions

View File

@@ -440,6 +440,13 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
SET_SOCKERRNO(0);
err = 0;
}
#endif
#ifdef __minix
/* Minix 3.1.x doesn't support getsockopt on UDP sockets */
if (EBADIOCTL == err) {
SET_SOCKERRNO(0);
err = 0;
}
#endif
if ((0 == err) || (EISCONN == err))
/* we are connected, awesome! */