Support gethostbyname_r_ERANGE.