to do (what I believe is) "right". See docs on:
http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/libs/commtrf2/getservbyport_r.htm
char buf[4096];
int len = 4096;
#elif GETSERVBYPORT_R_ARGS == 4
+ struct servent ret;
struct servent_data sed;
#endif
if (flags & ARES_NI_UDP)
#elif GETSERVBYPORT_R_ARGS == 5
se = getservbyport_r(port, proto, se, buf, len);
#elif GETSERVBYPORT_R_ARGS == 4
- se = &sed;
+ se = &ret;
if (getservbyport_r(port, proto, se, &sed) == -1)
se = NULL;
#else