Loading lib/connect.c +4 −8 Original line number Diff line number Diff line Loading @@ -81,12 +81,8 @@ #include "memdebug.h" #endif /* The AIX 3.2.5 system headers define a function called geterrno() which we won't need but that interferes with our function */ #undef geterrno static int geterrno(void) int ourerrno(void) { #ifdef WIN32 return (int)GetLastError(); Loading Loading @@ -350,7 +346,7 @@ int socketerror(int sockfd) if( -1 == getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (void *)&err, &errSize)) err = geterrno(); err = ourerrno(); return err; } Loading Loading @@ -523,7 +519,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ rc = connect(sockfd, ai->ai_addr, ai->ai_addrlen); if(-1 == rc) { int error=geterrno(); int error=ourerrno(); switch (error) { case EINPROGRESS: Loading Loading @@ -642,7 +638,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ sizeof(serv_addr)); if(-1 == rc) { int error=geterrno(); int error=ourerrno(); switch (error) { case EINPROGRESS: Loading Loading
lib/connect.c +4 −8 Original line number Diff line number Diff line Loading @@ -81,12 +81,8 @@ #include "memdebug.h" #endif /* The AIX 3.2.5 system headers define a function called geterrno() which we won't need but that interferes with our function */ #undef geterrno static int geterrno(void) int ourerrno(void) { #ifdef WIN32 return (int)GetLastError(); Loading Loading @@ -350,7 +346,7 @@ int socketerror(int sockfd) if( -1 == getsockopt(sockfd, SOL_SOCKET, SO_ERROR, (void *)&err, &errSize)) err = geterrno(); err = ourerrno(); return err; } Loading Loading @@ -523,7 +519,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ rc = connect(sockfd, ai->ai_addr, ai->ai_addrlen); if(-1 == rc) { int error=geterrno(); int error=ourerrno(); switch (error) { case EINPROGRESS: Loading Loading @@ -642,7 +638,7 @@ CURLcode Curl_connecthost(struct connectdata *conn, /* context */ sizeof(serv_addr)); if(-1 == rc) { int error=geterrno(); int error=ourerrno(); switch (error) { case EINPROGRESS: Loading