aboutsummaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index cfdf5680a..c8c82a1b7 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -441,6 +441,13 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
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! */
rc = TRUE;