diff options
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> |