pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/net/p5-IO-Interface
Module Name: pkgsrc
Committed By: jperkin
Date: Fri Sep 16 08:47:48 UTC 2016
Modified Files:
pkgsrc/net/p5-IO-Interface: distinfo
pkgsrc/net/p5-IO-Interface/patches: patch-aa
Log Message:
Fix build on SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/p5-IO-Interface/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/p5-IO-Interface/patches/patch-aa
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/net/p5-IO-Interface/distinfo
diff -u pkgsrc/net/p5-IO-Interface/distinfo:1.8 pkgsrc/net/p5-IO-Interface/distinfo:1.9
--- pkgsrc/net/p5-IO-Interface/distinfo:1.8 Tue Aug 16 13:09:16 2016
+++ pkgsrc/net/p5-IO-Interface/distinfo Fri Sep 16 08:47:48 2016
@@ -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
Index: pkgsrc/net/p5-IO-Interface/patches/patch-aa
diff -u pkgsrc/net/p5-IO-Interface/patches/patch-aa:1.2 pkgsrc/net/p5-IO-Interface/patches/patch-aa:1.3
--- pkgsrc/net/p5-IO-Interface/patches/patch-aa:1.2 Tue Aug 16 13:09:17 2016
+++ pkgsrc/net/p5-IO-Interface/patches/patch-aa Fri Sep 16 08:47:48 2016
@@ -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
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;
Home |
Main Index |
Thread Index |
Old Index