]> git.pld-linux.org Git - packages/perl-SNMP_Session.git/blame - perl-SNMP_Session-Socket6_conflict.patch
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-SNMP_Session.git] / perl-SNMP_Session-Socket6_conflict.patch
CommitLineData
ead5285c
JK
1$OpenBSD: patch-lib_SNMP_Session_pm,v 1.2 2010/03/20 23:05:17 sthen Exp $
2--- lib/SNMP_Session.pm.orig Fri Nov 21 05:25:17 2008
3+++ lib/SNMP_Session.pm Tue Mar 16 16:14:22 2010
4@@ -146,7 +146,7 @@ BEGIN {
5
6 if (eval {local $SIG{__DIE__};require Socket6;} &&
7 eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
8- import Socket6;
9+ Socket6->import(qw(inet_pton getaddrinfo));
10 $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
11 $SNMP_Session::ipv6available = 1;
12 }
13@@ -605,7 +605,7 @@ use Carp;
14 BEGIN {
15 if($SNMP_Session::ipv6available) {
16 import IO::Socket::INET6;
17- import Socket6;
18+ Socket6->import(qw(inet_pton getaddrinfo));
19 }
20 }
21
This page took 0.237363 seconds and 4 git commands to generate.