summaryrefslogtreecommitdiff
path: root/lib/syslog.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/syslog.pl')
-rw-r--r--lib/syslog.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/syslog.pl b/lib/syslog.pl
index 2034e0aa48..29c3a1cc9a 100644
--- a/lib/syslog.pl
+++ b/lib/syslog.pl
@@ -32,14 +32,14 @@ package syslog;
$host = 'localhost' unless $host; # set $syslog'host to change
if ($] >= 5) {
- warn "You should 'use Sys::Socket' instead; continuing" # if $^W
+ warn "You should 'use Sys::Syslog' instead; continuing" # if $^W
}
require 'syslog.ph';
- eval 'require Socket' ||
-eval { require "socket.ph" } ||
- require "sys/socket.ph";
+ eval 'use Socket' ||
+ eval { require "socket.ph" } ||
+ require "sys/socket.ph";
$maskpri = &LOG_UPTO(&LOG_DEBUG);