Diff
Not logged in

Differences From Artifact [1c465bce42]:

To Artifact [692bf56573]:


167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
    struct addrinfo hints;
    struct addrinfo *p;
    struct addrinfo *v4head = NULL, *v4ptr = NULL;
    struct addrinfo *v6head = NULL, *v6ptr = NULL;
    char *native = NULL, portbuf[TCL_INTEGER_SPACE], *portstring;
    const char *family = NULL;
    Tcl_DString ds;
    int result, i;

    if (host != NULL) {
	native = Tcl_UtfToExternalDString(NULL, host, -1, &ds);
    }

    /*
     * Workaround for OSX's apparent inability to resolve "localhost", "0"







|







167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
    struct addrinfo hints;
    struct addrinfo *p;
    struct addrinfo *v4head = NULL, *v4ptr = NULL;
    struct addrinfo *v6head = NULL, *v6ptr = NULL;
    char *native = NULL, portbuf[TCL_INTEGER_SPACE], *portstring;
    const char *family = NULL;
    Tcl_DString ds;
    int result;

    if (host != NULL) {
	native = Tcl_UtfToExternalDString(NULL, host, -1, &ds);
    }

    /*
     * Workaround for OSX's apparent inability to resolve "localhost", "0"
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
	    v6ptr->ai_next = NULL;
	}
	if (v4head != NULL) {
	    v4ptr->ai_next = *addrlist;
	    *addrlist = v4head;
	}
    }
    i = 0;
    for (p = *addrlist; p != NULL; p = p->ai_next) {
	i++;
    }

    return 1;
}

/*
 * Work around an omission in earlier versions of MinGW.
 */
#ifdef __MINGW32__







<
<
<
<
<







275
276
277
278
279
280
281





282
283
284
285
286
287
288
	    v6ptr->ai_next = NULL;
	}
	if (v4head != NULL) {
	    v4ptr->ai_next = *addrlist;
	    *addrlist = v4head;
	}
    }





    return 1;
}

/*
 * Work around an omission in earlier versions of MinGW.
 */
#ifdef __MINGW32__