mirror of
https://github.com/curl/curl.git
synced 2026-08-25 08:53:36 +03:00
Minix doesn't support getsockopt on UDP sockets or send/recv on TCP
sockets.
This commit is contained in:
parent
73e91ce20c
commit
8147c3659d
2 changed files with 22 additions and 2 deletions
|
|
@ -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! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue