From: Sevan Janiyan Date: Thu, 29 Nov 2018 01:48:19 +0000 (+0000) Subject: connect: fix building for recent versions of Minix X-Git-Tag: curl-7_63_0~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b466560124e53ef95257fd3ccbabca8b153c2269;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/connect.c b/lib/connect.c index ae9c2de1e5..ec3cd3a795 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);