1
0

102-musl_compat.patch 578 B

1234567891011
  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);