diff --git a/main/utils.c b/main/utils.c index e85618048c..9a54622a96 100644 --- a/main/utils.c +++ b/main/utils.c @@ -212,7 +212,7 @@ struct hostent *ast_gethostbyname(const char *host, struct ast_hostent *hp) return NULL; } -#ifdef HAVE_GETHOSTBYNAME_R5 +#ifdef HAVE_GETHOSTBYNAME_R_5 result = gethostbyname_r(host, &hp->hp, hp->buf, sizeof(hp->buf), &herrno); if (!result || !hp->hp.h_addr_list || !hp->hp.h_addr_list[0])