]> granicus.if.org Git - curl/commitdiff
connect: fix building for recent versions of Minix
authorSevan Janiyan <venture37@geeklan.co.uk>
Thu, 29 Nov 2018 01:48:19 +0000 (01:48 +0000)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 29 Nov 2018 07:05:23 +0000 (02:05 -0500)
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

index ae9c2de1e53507ee3e0239b0ed0915f2ea92136b..ec3cd3a795677876540f601a4f0de5e31753582e 100644 (file)
@@ -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);