diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-12 03:14:32 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-12 03:14:32 +0000 |
commit | cc8876c3e2e0fc38b51b89fba3e6118ce3a9b18f (patch) | |
tree | 3a89a417da5a47b5e31af702422e19eef4905d10 /ext | |
parent | b2ce41205b13ec60dc055bdd1a441b5cf85fbff4 (diff) | |
download | perl-cc8876c3e2e0fc38b51b89fba3e6118ce3a9b18f.tar.gz |
No Socket, no Syslog.
p4raw-id: //depot/perl@13645
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/Sys/Syslog/syslog.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/Sys/Syslog/syslog.t b/ext/Sys/Syslog/syslog.t index 108d7e8a0b..448bc546ce 100755 --- a/ext/Sys/Syslog/syslog.t +++ b/ext/Sys/Syslog/syslog.t @@ -8,8 +8,10 @@ BEGIN { print "1..0 # Skip: Sys::Syslog was not built\n"; exit 0; } - - require Socket; + if ($Config{'extensions'} !~ /\bSocket\b/) { + print "1..0 # Skip: Socket was not built\n"; + exit 0; + } # This code inspired by Sys::Syslog::connect(): require Sys::Hostname; |