$has_alarm = $Config{d_alarm};
}
-use Socket;
+use Socket qw(:all);
print "1..17\n";
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);
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);