summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhans <hans>2011-12-14 11:08:50 +0000
committerhans <hans>2011-12-14 11:08:50 +0000
commit22d65a14037dcb2010a062ad1e444ab039b01334 (patch)
treeb79a02695c930c7bf1ae1934da48f4a6161d7f1e /lang
parent3b7db2e40c128e035c542b75e9bf2b1dab90c464 (diff)
downloadpkgsrc-22d65a14037dcb2010a062ad1e444ab039b01334.tar.gz
Don't use SIOCGIFHWADDR on SunOS.
Diffstat (limited to 'lang')
-rw-r--r--lang/erlang/distinfo3
-rw-r--r--lang/erlang/patches/patch-erts_emulator_drivers_common_inet_drv.c15
2 files changed, 17 insertions, 1 deletions
diff --git a/lang/erlang/distinfo b/lang/erlang/distinfo
index ffba2931a8b..88ec097d312 100644
--- a/lang/erlang/distinfo
+++ b/lang/erlang/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2011/05/26 20:19:43 asau Exp $
+$NetBSD: distinfo,v 1.25 2011/12/14 11:08:50 hans Exp $
SHA1 (erlang/otp_src_R14B03.tar.gz) = 109812114ef7c2855ade14b90813a870c89f6d43
RMD160 (erlang/otp_src_R14B03.tar.gz) = 468736a53b2e74ab0cd0f706751b5b03cbfa87cd
@@ -8,3 +8,4 @@ SHA1 (patch-ai) = e0b05313bb5198b339ff0c8d277cbe62a13d0c94
SHA1 (patch-am) = 273390e10f5bb3a8e858f5f831c7f5afded068bf
SHA1 (patch-ao) = a4ee17b0a81415d541cb55d76b3c1ecc3148c2c2
SHA1 (patch-ay) = 7d1a7f79e8c3ea909b2f4476d9ff271ed1318234
+SHA1 (patch-erts_emulator_drivers_common_inet_drv.c) = 57cd06da314895166f331a9aecc2fac02715d3e5
diff --git a/lang/erlang/patches/patch-erts_emulator_drivers_common_inet_drv.c b/lang/erlang/patches/patch-erts_emulator_drivers_common_inet_drv.c
new file mode 100644
index 00000000000..40967695ffc
--- /dev/null
+++ b/lang/erlang/patches/patch-erts_emulator_drivers_common_inet_drv.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-erts_emulator_drivers_common_inet_drv.c,v 1.1 2011/12/14 11:08:50 hans Exp $
+
+Don't use SIOCGIFHWADDR on SunOS, there is no ifr_hwaddr.
+
+--- erts/emulator/drivers/common/inet_drv.c.orig 2011-05-24 13:16:43.000000000 +0200
++++ erts/emulator/drivers/common/inet_drv.c 2011-12-14 11:35:59.168220052 +0100
+@@ -4164,7 +4164,7 @@ static int inet_ctl_ifget(inet_descripto
+ break;
+
+ case INET_IFOPT_HWADDR: {
+-#ifdef SIOCGIFHWADDR
++#if defined(SIOCGIFHWADDR) && !defined(__sun)
+ if (ioctl(desc->s, SIOCGIFHWADDR, (char *)&ifreq) < 0)
+ break;
+ buf_check(sptr, s_end, 1+2+IFHWADDRLEN);