aports/testing/erlang/replace_glibc_check.patch
John Regan d619822e89 testing/erlang: updating to 17.4
Signed-off-by: Leonardo Arena <rnalrd@alpinelinux.org>
2015-02-19 15:55:16 +00:00

21 lines
971 B
Diff

--- otp_src_17.4/lib/erl_interface/src/connect/ei_resolve.c
+++ otp_src_17.4-fixed/lib/erl_interface/src/connect/ei_resolve.c
@@ -615,7 +615,7 @@
#ifndef HAVE_GETHOSTBYNAME_R
return my_gethostbyaddr_r(addr,length,type,hostp,buffer,buflen,h_errnop);
#else
-#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__))
+#if (defined(_BSD_SOURCE) || (__FreeBSD_version >= 602000) || defined(__DragonFly__))
struct hostent *result;
gethostbyaddr_r(addr, length, type, hostp, buffer, buflen, &result,
@@ -642,7 +642,7 @@
#ifndef HAVE_GETHOSTBYNAME_R
return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
#else
-#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__))
+#if (defined(_BSD_SOURCE) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__))
struct hostent *result;
gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);