pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/erlang Make it compile on DragonFly master.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e362cdb20906
branches: trunk
changeset: 556991:e362cdb20906
user: hasso <hasso%pkgsrc.org@localhost>
date: Tue Apr 07 18:36:52 2009 +0000
description:
Make it compile on DragonFly master.
diffstat:
lang/erlang/distinfo | 4 ++--
lang/erlang/patches/patch-ah | 21 ++++++++++++++++-----
2 files changed, 18 insertions(+), 7 deletions(-)
diffs (49 lines):
diff -r e33f42ef42f7 -r e362cdb20906 lang/erlang/distinfo
--- a/lang/erlang/distinfo Tue Apr 07 18:05:08 2009 +0000
+++ b/lang/erlang/distinfo Tue Apr 07 18:36:52 2009 +0000
@@ -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-ae) = 4b338469a00513835c774de001b1c938636df418
SHA1 (patch-af) = 3ad903b5f9fab6ff57084ff1186a4b7a6dce777e
SHA1 (patch-ag) = ca0ac13b64490fc387418192becf8e85fea427b5
-SHA1 (patch-ah) = fc2214abed17eb9ce36c6c33c5ba3988a632d125
+SHA1 (patch-ah) = 77780f9fcc82cedf6f06f02f9b19ca83cf1a8879
SHA1 (patch-ai) = 6ce89f9170d26594c2fce2ec21ab95cef8b08980
diff -r e33f42ef42f7 -r e362cdb20906 lang/erlang/patches/patch-ah
--- a/lang/erlang/patches/patch-ah Tue Apr 07 18:05:08 2009 +0000
+++ b/lang/erlang/patches/patch-ah Tue Apr 07 18:36:52 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index