diff options
author | jperkin <jperkin@pkgsrc.org> | 2016-09-16 08:47:48 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2016-09-16 08:47:48 +0000 |
commit | f62a4f07ace13ece89752c8c4e040657a5acebfb (patch) | |
tree | d0140c9ca3ca1e5e930edc81cf90ef34209e115f /net/p5-IO-Interface | |
parent | 13d29b91607e2377bed190d1ebb47e396c692cfa (diff) | |
download | pkgsrc-f62a4f07ace13ece89752c8c4e040657a5acebfb.tar.gz |
Fix build on SunOS.
Diffstat (limited to 'net/p5-IO-Interface')
-rw-r--r-- | net/p5-IO-Interface/distinfo | 4 | ||||
-rw-r--r-- | net/p5-IO-Interface/patches/patch-aa | 26 |
2 files changed, 25 insertions, 5 deletions
diff --git a/net/p5-IO-Interface/distinfo b/net/p5-IO-Interface/distinfo index c28c995ac29..c9183f545d8 100644 --- a/net/p5-IO-Interface/distinfo +++ b/net/p5-IO-Interface/distinfo @@ -1,7 +1,7 @@ -$NetBSD: distinfo,v 1.8 2016/08/16 13:09:16 mef Exp $ +$NetBSD: distinfo,v 1.9 2016/09/16 08:47:48 jperkin Exp $ SHA1 (IO-Interface-1.09.tar.gz) = 5cd764267ccd8b4a2495217a982d11c2d54cb666 RMD160 (IO-Interface-1.09.tar.gz) = 9437908763a989cbd72493fb3239a207f602df36 SHA512 (IO-Interface-1.09.tar.gz) = a23a4793e23ba0fbb0583c6692d7138e4a9b0a6959c9fa81489954090fa51ca6edfe79841a8f69ab7f7a52aec31a477cb01705f6d66d5c7e8b69f76301360cd5 Size (IO-Interface-1.09.tar.gz) = 16414 bytes -SHA1 (patch-aa) = 9a2da80746f38679e231df7c5abf8d0d5ec2fd45 +SHA1 (patch-aa) = ef565ac31332a52c4afc8fad0e9aafcadf7b6919 diff --git a/net/p5-IO-Interface/patches/patch-aa b/net/p5-IO-Interface/patches/patch-aa index 104c8fd972b..1e8d9bab96d 100644 --- a/net/p5-IO-Interface/patches/patch-aa +++ b/net/p5-IO-Interface/patches/patch-aa @@ -1,7 +1,9 @@ -$NetBSD: patch-aa,v 1.2 2016/08/16 13:09:17 mef Exp $ +$NetBSD: patch-aa,v 1.3 2016/09/16 08:47:48 jperkin Exp $ ---- lib/IO/Interface.xs~ 2014-12-10 01:41:30.000000000 +0900 -+++ lib/IO/Interface.xs 2016-08-16 22:00:11.000000000 +0900 +Suport NetBSD and SunOS. + +--- lib/IO/Interface.xs.orig 2014-12-09 16:41:30.000000000 +0000 ++++ lib/IO/Interface.xs @@ -442,6 +442,9 @@ if_addr(sock, name, ...) operation = SIOCGIFADDR; } @@ -12,3 +14,21 @@ $NetBSD: patch-aa,v 1.2 2016/08/16 13:09:17 mef Exp $ if (ifr.ifr_addr.sa_family != AF_INET) croak ("Address is not in the AF_INET family.\n"); RETVAL = inet_ntoa(((struct sockaddr_in*) &ifr.ifr_addr)->sin_addr); } +@@ -587,7 +590,7 @@ if_hwaddr(sock, name, ...) + char *newaddr,hwaddr[128]; + CODE: + { +-#if !((defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) || defined(USE_GETIFADDRS)) ++#if !((defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) || defined(USE_GETIFADDRS)) || defined(__sun) + XSRETURN_UNDEF; + #endif + #if (defined(USE_GETIFADDRS) && defined(HAVE_SOCKADDR_DL_STRUCT)) +@@ -620,7 +623,7 @@ if_hwaddr(sock, name, ...) + freeifaddrs(ifap); + + RETVAL = hwaddr; +-#elif (defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) ++#elif (defined(HAS_IOCTL) && defined(SIOCGIFHWADDR)) && !defined(__sun) + bzero((void*)&ifr,sizeof(struct ifreq)); + strncpy(ifr.ifr_name,name,IFNAMSIZ-1); + ifr.ifr_hwaddr.sa_family = AF_UNSPEC; |