diff options
author | Gisle Aas <gisle@activestate.com> | 2006-01-18 14:41:17 +0000 |
---|---|---|
committer | Gisle Aas <gisle@activestate.com> | 2006-01-18 14:41:17 +0000 |
commit | 38f5dce2f24ba3440370804d9745b36dc261f941 (patch) | |
tree | 794754e3a67d8a4ec089fe31b6ae8303e5325e3b /ext/Socket | |
parent | 561b68a973f8a5d10c61d6a02c02f3002a0a63ba (diff) | |
download | perl-38f5dce2f24ba3440370804d9745b36dc261f941.tar.gz |
Use the IPPROTO_TCP constant instead of 6.
p4raw-id: //depot/perl@26902
Diffstat (limited to 'ext/Socket')
-rwxr-xr-x | ext/Socket/t/Socket.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Socket/t/Socket.t b/ext/Socket/t/Socket.t index b8d6ab00d6..f707999040 100755 --- a/ext/Socket/t/Socket.t +++ b/ext/Socket/t/Socket.t @@ -12,7 +12,7 @@ BEGIN { $has_alarm = $Config{d_alarm}; } -use Socket; +use Socket qw(:all); print "1..17\n"; @@ -22,7 +22,7 @@ sub arm { $alarmed = 0; alarm(shift) if $has_alarm } sub alarmed { $alarmed = 1 } $SIG{ALRM} = 'alarmed' if $has_alarm; -if (socket(T,PF_INET,SOCK_STREAM,6)) { +if (socket(T, PF_INET, SOCK_STREAM, IPPROTO_TCP)) { print "ok 1\n"; arm(5); @@ -70,7 +70,7 @@ else { print "not ok 1\n"; } -if( socket(S,PF_INET,SOCK_STREAM,6) ){ +if( socket(S, PF_INET,SOCK_STREAM, IPPROTO_TCP) ){ print "ok 4\n"; arm(5); |