This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
XSLoader for Sys::Syslog
authorAlexey Tourbin <at@altlinux.ru>
Sun, 26 Jun 2005 08:32:05 +0000 (12:32 +0400)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 27 Jun 2005 15:22:58 +0000 (15:22 +0000)
Message-ID: <20050626043204.GA31585@solemn.turbinal.org>

p4raw-id: //depot/perl@24993

ext/Sys/Syslog/Syslog.pm

index f38238b..7581bcb 100644 (file)
@@ -1,14 +1,13 @@
 package Sys::Syslog;
 require 5.006;
 require Exporter;
-require DynaLoader;
 use Carp;
 use strict;
 
-our @ISA = qw(Exporter DynaLoader);
+our @ISA = qw(Exporter);
 our @EXPORT = qw(openlog closelog setlogmask syslog);
 our @EXPORT_OK = qw(setlogsock);
-our $VERSION = '0.06';
+our $VERSION = '0.07';
 
 # it would be nice to try stream/unix first, since that will be
 # most efficient. However streams are dodgy - see _syslog_send_stream
@@ -175,7 +174,8 @@ sub AUTOLOAD {
     goto &$AUTOLOAD;
 }
 
-bootstrap Sys::Syslog $VERSION;
+require XSLoader;
+XSLoader::load('Sys::Syslog', $VERSION);
 
 our $maskpri = &LOG_UPTO(&LOG_DEBUG);