--- main/netsock2.c.orig 2010-10-18 15:50:04.000000000 -0400 +++ main/netsock2.c 2011-01-12 12:03:47.000000000 -0500 @@ -201,7 +201,11 @@ hints.ai_flags = AI_NUMERICHOST; #endif if ((e = getaddrinfo(host, port, &hints, &res))) { +#ifndef __Darwin__ if (e != EAI_NONAME) { /* if this was just a host name rather than a ip address, don't print error */ +#else + if (e != EAI_NODATA) { /* if this was just a host name rather than a ip address, don't print error */ +#endif ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n", host, S_OR(port, "(null)"), gai_strerror(e)); }