diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2007-03-20 06:15:31 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-21 10:43:52 +0000 |
commit | 1307ca853d9a942ef19dd71e17b80548b62f88bf (patch) | |
tree | 89178a2947a02dbb345c4496b54297366ec43f1b /ext/Sys | |
parent | 171b7b3bb498e65337955ed3530343cea00bd509 (diff) | |
download | perl-1307ca853d9a942ef19dd71e17b80548b62f88bf.tar.gz |
Sys::Syslog doesn't need ppport.h in core
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <203426.48736.qm@web30214.mail.mud.yahoo.com>
p4raw-id: //depot/perl@30657
Diffstat (limited to 'ext/Sys')
-rw-r--r-- | ext/Sys/Syslog/Makefile.PL | 5 | ||||
-rw-r--r-- | ext/Sys/Syslog/Syslog.pm | 2 | ||||
-rw-r--r-- | ext/Sys/Syslog/Syslog.xs | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/ext/Sys/Syslog/Makefile.PL b/ext/Sys/Syslog/Makefile.PL index 3cb0c64b4a..c78408da5c 100644 --- a/ext/Sys/Syslog/Makefile.PL +++ b/ext/Sys/Syslog/Makefile.PL @@ -18,6 +18,11 @@ WriteMakefile( dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Sys-Syslog-*' }, realclean => { FILES => 'const-c.inc const-xs.inc macros.all' }, + ( + (grep { $_ eq 'PERL_CORE=1' } @ARGV) + ? () + : ('DEFINE' => '-DUSE_PPPORT_H') + ), ); my $_PATH_LOG; diff --git a/ext/Sys/Syslog/Syslog.pm b/ext/Sys/Syslog/Syslog.pm index 2a2ddb8b04..6dc3c853f4 100644 --- a/ext/Sys/Syslog/Syslog.pm +++ b/ext/Sys/Syslog/Syslog.pm @@ -9,7 +9,7 @@ require 5.006; require Exporter; { no strict 'vars'; - $VERSION = '0.18'; + $VERSION = '0.18_01'; @ISA = qw(Exporter); %EXPORT_TAGS = ( diff --git a/ext/Sys/Syslog/Syslog.xs b/ext/Sys/Syslog/Syslog.xs index 0408935820..61712d4612 100644 --- a/ext/Sys/Syslog/Syslog.xs +++ b/ext/Sys/Syslog/Syslog.xs @@ -1,7 +1,9 @@ #include "EXTERN.h" #include "perl.h" #include "XSUB.h" -#include "ppport.h" +#ifdef USE_PPPORT_H +# include "ppport.h" +#endif #ifdef I_SYSLOG #include <syslog.h> |