diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-08-06 14:46:05 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-08-06 14:46:05 +0000 |
commit | 29cac261bdfbf2197325b3e51c53244d096961d1 (patch) | |
tree | 32883a5c5c602a238c436cc78d30aaecda74630e /dev-lang/erlang/files | |
parent | Fix building bluetooth, #181883 thanks to Sascha Lucas (diff) | |
download | gentoo-2-29cac261bdfbf2197325b3e51c53244d096961d1.tar.gz gentoo-2-29cac261bdfbf2197325b3e51c53244d096961d1.tar.bz2 gentoo-2-29cac261bdfbf2197325b3e51c53244d096961d1.zip |
Fix gethostbyname problem on FreeBSD and keyword ~x86-fbsd, #182001 thanks to Pierre Guinoiseau.
(Portage version: 2.1.3.3)
Diffstat (limited to 'dev-lang/erlang/files')
-rw-r--r-- | dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch b/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch new file mode 100644 index 000000000000..8bef15046edc --- /dev/null +++ b/dev-lang/erlang/files/erlang-11.2.5-gethostbyname.patch @@ -0,0 +1,20 @@ +diff -Naur otp_src_R11B-4.orig/lib/erl_interface/src/connect/ei_resolve.c otp_src_R11B-4/lib/erl_interface/src/connect/ei_resolve.c +--- otp_src_R11B-4.orig/lib/erl_interface/src/connect/ei_resolve.c 2006-11-06 14:53:29 +0100 ++++ otp_src_R11B-4/lib/erl_interface/src/connect/ei_resolve.c 2007-06-13 23:14:06 +0200 +@@ -44,6 +44,7 @@ + #include <stdlib.h> + #include <string.h> + #include <errno.h> ++#include <sys/param.h> + #endif + + /* common to all platforms */ +@@ -614,7 +615,7 @@ + #ifndef HAVE_GETHOSTBYNAME_R + return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop); + #else +-#ifdef __GLIBC__ ++#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000)) + struct hostent *result; + + gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop); |