*** ./configure.ORIG Wed Aug 24 18:05:39 2011 --- ./configure Wed Aug 24 18:05:45 2011 *************** *** 6291,6297 **** cat >>confdefs.h <<\_ACEOF - #define malloc rpl_malloc _ACEOF fi --- 6291,6296 ---- *** ./svc.c.ORIG Fri Oct 7 11:19:25 2011 --- ./svc.c Fri Oct 7 11:25:00 2011 *************** *** 641,649 **** --- 641,653 ---- hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_CANONNAME; if((ret_val = getaddrinfo(name, NULL, &hints, &chain)) == 0) { + #ifdef _AIX + ap = chain; + #else for(ap = chain; ap != NULL; ap = ap->ai_next) if(ap->ai_socktype == SOCK_STREAM) break; + #endif if(ap == NULL) { freeaddrinfo(chain); return EAI_NONAME;