You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
578 B

  1. --- a/lib/erl_interface/src/connect/ei_resolve.c
  2. +++ b/lib/erl_interface/src/connect/ei_resolve.c
  3. @@ -642,7 +642,7 @@ struct hostent *ei_gethostbyname_r(const
  4. #ifndef HAVE_GETHOSTBYNAME_R
  5. return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
  6. #else
  7. -#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__))
  8. +#if (defined(_GNU_SOURCE) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__))
  9. struct hostent *result;
  10. gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);