From b466560124e53ef95257fd3ccbabca8b153c2269 Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Thu, 29 Nov 2018 01:48:19 +0000 Subject: 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 --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3