--- main/netsock2.c.orig 2010-10-18 15:50:04.000000000 -0400 +++ main/netsock2.c 2010-12-28 11:28:03.000000000 -0500 @@ -201,10 +201,12 @@ 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 */ ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n", host, S_OR(port, "(null)"), gai_strerror(e)); } +#endif return 0; }