summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2012-06-14 17:16:22 +0000
committerfhajny <fhajny@pkgsrc.org>2012-06-14 17:16:22 +0000
commita649badd9f6ce170a0bd933661519f58d23d5daf (patch)
tree7836ac8002a60f11e38ebc2ad7b57db17fede093 /net
parent9917e918a9af5e8757081b33ea8a30da182970da (diff)
downloadpkgsrc-a649badd9f6ce170a0bd933661519f58d23d5daf.tar.gz
Fix build on recent SunOS platforms
Diffstat (limited to 'net')
-rw-r--r--net/ucarp/distinfo3
-rw-r--r--net/ucarp/patches/patch-src_fillmac.c14
2 files changed, 16 insertions, 1 deletions
diff --git a/net/ucarp/distinfo b/net/ucarp/distinfo
index 1ef4e133b08..8a7ec78687b 100644
--- a/net/ucarp/distinfo
+++ b/net/ucarp/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2011/11/02 01:13:04 hubertf Exp $
+$NetBSD: distinfo,v 1.5 2012/06/14 17:16:22 fhajny Exp $
SHA1 (ucarp-1.5.2.tar.bz2) = 0326fa7460eacd23b59216878524487265051cba
RMD160 (ucarp-1.5.2.tar.bz2) = 83f54644abddf4b27f1b829c2a3a0fc98861027b
Size (ucarp-1.5.2.tar.bz2) = 315414 bytes
SHA1 (patch-aa) = ef0d7b65f6a964607a695c7a33891d45fd116569
+SHA1 (patch-src_fillmac.c) = 9870a6613bfb7c7eff7c6c9d164c8bf32bbe6454
diff --git a/net/ucarp/patches/patch-src_fillmac.c b/net/ucarp/patches/patch-src_fillmac.c
new file mode 100644
index 00000000000..03939fe523b
--- /dev/null
+++ b/net/ucarp/patches/patch-src_fillmac.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_fillmac.c,v 1.1 2012/06/14 17:16:23 fhajny Exp $
+
+SIOCGIFHWADDR defined on recent SunOS, doesn't have the usual structure.
+--- src/fillmac.c.orig 2007-07-04 13:34:59.000000000 +0000
++++ src/fillmac.c
+@@ -43,7 +43,7 @@ int fill_mac_address(void)
+ strerror(errno));
+ return -1;
+ }
+-#ifdef SIOCGIFHWADDR
++#if defined(SIOCGIFHWADDR) && !defined(__sun)
+ {
+ struct ifreq ifr;
+