From: Jeff Lenk Date: Mon, 19 Jul 2010 20:25:45 +0000 (-0500) Subject: fix windows build X-Git-Tag: v1.2-rc1~530 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a9a61c79fbe2b3cd3a4fa2249503d31b38f20d8;p=thirdparty%2Ffreeswitch.git fix windows build --- diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 76a09b1735..e3ea1532b0 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -34,6 +34,8 @@ #include #ifndef WIN32 #define closesocket(x) close(x) +#else +#include #endif @@ -636,6 +638,7 @@ ESL_DECLARE(esl_status_t) esl_connect(esl_handle_t *handle, const char *host, es hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; + gethostbyname(host); if (getaddrinfo(host, NULL, &hints, &result)) { strncpy(handle->err, "Cannot resolve host", sizeof(handle->err)); goto fail;