aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSevan Janiyan <venture37@geeklan.co.uk>2018-11-29 01:48:19 +0000
committerJay Satiro <raysatiro@yahoo.com>2018-11-29 02:05:23 -0500
commitb466560124e53ef95257fd3ccbabca8b153c2269 (patch)
treeb20f7053c2a4b20b45019a13b6c185cff4443d0e /lib
parenta39d8f7056c9ad4e75c82fa0939a9ae1e246d055 (diff)
connect: fix building for recent versions of Minix
EBADIOCTL doesn't exist on more recent Minix. There have also been substantial changes to the network stack. Fixes build on Minix 3.4rc Closes https://github.com/curl/curl/pull/3323
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index ae9c2de1e..ec3cd3a79 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -522,7 +522,7 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
err = 0;
}
#endif
-#ifdef __minix
+#if defined(EBADIOCTL) && defined(__minix)
/* Minix 3.1.x doesn't support getsockopt on UDP sockets */
if(EBADIOCTL == err) {
SET_SOCKERRNO(0);