aboutsummaryrefslogtreecommitdiff
path: root/net/p5-IO-Socket-INET6/files/5.005_03.diff
blob: 10dc9fa57dae6c74fc364e2889432c5d09719962 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

$FreeBSD$

--- INET6.pm.orig
+++ INET6.pm
@@ -10,7 +10,7 @@
 package IO::Socket::INET6;
 
 use strict;
-our(@ISA, $VERSION);
+use vars qw(@ISA $VERSION);
 use IO::Socket;
 use Socket;
 use Socket6;
@@ -22,7 +22,7 @@
 $VERSION = "2.51";
 #Purpose: allow protocol independent protocol and original interface.
 
-my $EINVAL = exists(&Errno::EINVAL) ? Errno::EINVAL() : 1;
+my $EINVAL = defined(&Errno::EINVAL) ? Errno::EINVAL() : 1;
 
 IO::Socket::INET6->register_domain( AF_INET6 );
 
@@ -190,7 +190,7 @@
 	}
 
 	if ($arg->{ReusePort}) {
-	    $sock->sockopt(SO_REUSEPORT,1) or
+	    $sock->sockopt(0x0200,1) or
 		    return _error($sock, $!, "sockopt: $!");
 	}