#include "memdebug.h"
#endif
-static
-int ourerrno(void)
+int Curl_ourerrno(void)
{
#ifdef WIN32
return (int)GetLastError();
if( -1 == getsockopt(sockfd, SOL_SOCKET, SO_ERROR,
(void *)&err, &errSize))
- err = ourerrno();
+ err = Curl_ourerrno();
return err;
}
return CURLE_COULDNT_CONNECT;
}
else if(1 != rc) {
- int error = ourerrno();
+ int error = Curl_ourerrno();
failf(data, "Failed connect to %s:%d, errno: %d",
conn->hostname, conn->port, error);
return CURLE_COULDNT_CONNECT;
rc = connect(sockfd, ai->ai_addr, ai->ai_addrlen);
if(-1 == rc) {
- int error=ourerrno();
+ int error=Curl_ourerrno();
switch (error) {
case EINPROGRESS:
sizeof(serv_addr));
if(-1 == rc) {
- int error=ourerrno();
+ int error=Curl_ourerrno();
switch (error) {
case EINPROGRESS:
Curl_ipconnect **addr, /* the one we used */
bool *connected /* truly connected? */
);
+
+int Curl_ourerrno(void);
#endif