diff options
author | fhajny <fhajny@pkgsrc.org> | 2012-06-14 17:16:22 +0000 |
---|---|---|
committer | fhajny <fhajny@pkgsrc.org> | 2012-06-14 17:16:22 +0000 |
commit | 25c0d8db3cba5642243cef6e1e3012164ea5acbd (patch) | |
tree | 7836ac8002a60f11e38ebc2ad7b57db17fede093 /net/ucarp | |
parent | 30f3fc7dedfdacd6b3a7faa85f9dfabdf80feff1 (diff) | |
download | pkgsrc-25c0d8db3cba5642243cef6e1e3012164ea5acbd.tar.gz |
Fix build on recent SunOS platforms
Diffstat (limited to 'net/ucarp')
-rw-r--r-- | net/ucarp/distinfo | 3 | ||||
-rw-r--r-- | net/ucarp/patches/patch-src_fillmac.c | 14 |
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; + |