@EXPORT = qw(openlog closelog setlogmask syslog);
use Socket;
-use Sys::Hostname;
# adapted from syslog.pl
#
}
sub connect {
+ unless ($host) {
+ require Sys::Hostname;
+ $host = Sys::Hostname::hostname();
+ }
my $udp = getprotobyname('udp');
my $syslog = getservbyname('syslog','udp');
my $this = sockaddr_in($syslog, INADDR_ANY);