|
@@ -0,0 +1,11 @@
|
|
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
|
+
|
|
11
|
+ gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);
|