diff options
author | hasso <hasso> | 2009-04-07 18:36:52 +0000 |
---|---|---|
committer | hasso <hasso> | 2009-04-07 18:36:52 +0000 |
commit | 0cb4d575c74dec2f7c21000689ce613ff8cfefbb (patch) | |
tree | 79dfbbf1cad9f4ca4b375a03090366a88dca9d9e /lang/erlang | |
parent | 3f5114c76a657e153c87e978ad16c3236578f61c (diff) | |
download | pkgsrc-0cb4d575c74dec2f7c21000689ce613ff8cfefbb.tar.gz |
Make it compile on DragonFly master.
Diffstat (limited to 'lang/erlang')
-rw-r--r-- | lang/erlang/distinfo | 4 | ||||
-rw-r--r-- | lang/erlang/patches/patch-ah | 21 |
2 files changed, 18 insertions, 7 deletions
diff --git a/lang/erlang/distinfo b/lang/erlang/distinfo index 6ea106dcc38..b5efca6732e 100644 --- a/lang/erlang/distinfo +++ b/lang/erlang/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.18 2009/02/07 21:45:43 joerg Exp $ +$NetBSD: distinfo,v 1.19 2009/04/07 18:36:52 hasso Exp $ SHA1 (erlang/otp_src_R12B-0.tar.gz) = e2c6e18d22e34a799fc6bc25fa2d25eedb30bccc RMD160 (erlang/otp_src_R12B-0.tar.gz) = cb07ea37f2b56e1ea2fc07c9063b647df7635b2b @@ -9,5 +9,5 @@ SHA1 (patch-ac) = ac9af68982593faa6736f70f5c196b6835748f58 SHA1 (patch-ae) = 4b338469a00513835c774de001b1c938636df418 SHA1 (patch-af) = 3ad903b5f9fab6ff57084ff1186a4b7a6dce777e SHA1 (patch-ag) = ca0ac13b64490fc387418192becf8e85fea427b5 -SHA1 (patch-ah) = fc2214abed17eb9ce36c6c33c5ba3988a632d125 +SHA1 (patch-ah) = 77780f9fcc82cedf6f06f02f9b19ca83cf1a8879 SHA1 (patch-ai) = 6ce89f9170d26594c2fce2ec21ab95cef8b08980 diff --git a/lang/erlang/patches/patch-ah b/lang/erlang/patches/patch-ah index 314c4601e0a..8a9a3ee1cbf 100644 --- a/lang/erlang/patches/patch-ah +++ b/lang/erlang/patches/patch-ah @@ -1,13 +1,24 @@ -$NetBSD: patch-ah,v 1.1 2008/06/21 22:13:09 joerg Exp $ +$NetBSD: patch-ah,v 1.2 2009/04/07 18:36:52 hasso Exp $ ---- lib/erl_interface/src/connect/ei_resolve.c.orig 2008-06-20 20:15:09.000000000 +0200 -+++ lib/erl_interface/src/connect/ei_resolve.c -@@ -614,7 +614,7 @@ struct hostent *ei_gethostbyname_r(const +--- lib/erl_interface/src/connect/ei_resolve.c.orig 2007-11-26 20:57:25 +0200 ++++ lib/erl_interface/src/connect/ei_resolve.c 2009-04-07 21:11:49 +0300 +@@ -46,6 +46,10 @@ + #include <errno.h> + #endif + ++#ifdef __DragonFly__ ++#include <sys/param.h> /* for __DragonFly_version */ ++#endif ++ + /* common to all platforms */ + #include "eidef.h" + #include "ei_resolve.h" +@@ -614,7 +618,7 @@ struct hostent *ei_gethostbyname_r(const #ifndef HAVE_GETHOSTBYNAME_R return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop); #else -#ifdef __GLIBC__ -+#if defined(__GLIBC__) || defined(__FreeBSD__) ++#if defined(__GLIBC__) || defined(__FreeBSD__) || (defined(__DragonFly__) && (__DragonFly_version + 0 >= 200202)) struct hostent *result; gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop); |