aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartti Kuparinen <[email protected]>2010-06-22 12:10:37 +0300
committerBjörn Gustavsson <[email protected]>2010-08-13 11:09:10 +0200
commit2008472c314e9ae78ee0044bb265c0d10e1aed31 (patch)
tree38b51f5227438e341b8eea6cd6a1c934f07b17d2 /lib
parent2fb2a1e0b6f85f87035d5b160c330cea584e01fd (diff)
downloadotp-2008472c314e9ae78ee0044bb265c0d10e1aed31.tar.gz
otp-2008472c314e9ae78ee0044bb265c0d10e1aed31.tar.bz2
otp-2008472c314e9ae78ee0044bb265c0d10e1aed31.zip
Add support for DragonFly BSD
These are the current NetBSD pkgsrc patches.
Diffstat (limited to 'lib')
-rw-r--r--lib/erl_interface/src/connect/ei_resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/erl_interface/src/connect/ei_resolve.c b/lib/erl_interface/src/connect/ei_resolve.c
index 42aeab22b1..24a030c468 100644
--- a/lib/erl_interface/src/connect/ei_resolve.c
+++ b/lib/erl_interface/src/connect/ei_resolve.c
@@ -601,7 +601,7 @@ struct hostent *ei_gethostbyaddr_r(const char *addr,
#ifndef HAVE_GETHOSTBYNAME_R
return my_gethostbyaddr_r(addr,length,type,hostp,buffer,buflen,h_errnop);
#else
-#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000))
+#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__))
struct hostent *result;
gethostbyaddr_r(addr, length, type, hostp, buffer, buflen, &result,
@@ -628,7 +628,7 @@ struct hostent *ei_gethostbyname_r(const char *name,
#ifndef HAVE_GETHOSTBYNAME_R
return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop);
#else
-#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000))
+#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__))
struct hostent *result;
gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop);