Sys::Syslog doesn't need ppport.h in core
authorJerry D. Hedden <jdhedden@cpan.org>
Tue, 20 Mar 2007 13:15:31 +0000 (06:15 -0700)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 21 Mar 2007 10:43:52 +0000 (10:43 +0000)
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <203426.48736.qm@web30214.mail.mud.yahoo.com>

p4raw-id: //depot/perl@30657

ext/Sys/Syslog/Makefile.PL
ext/Sys/Syslog/Syslog.pm
ext/Sys/Syslog/Syslog.xs
mkppport.lst

index 3cb0c64..c78408d 100644 (file)
@@ -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;
index 2a2ddb8..6dc3c85 100644 (file)
@@ -9,7 +9,7 @@ require 5.006;
 require Exporter;
 
 {   no strict 'vars';
-    $VERSION = '0.18';
+    $VERSION = '0.18_01';
     @ISA = qw(Exporter);
 
     %EXPORT_TAGS = (
index 0408935..61712d4 100644 (file)
@@ -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>
index 7840f3c..8c090d4 100644 (file)
@@ -6,6 +6,5 @@
 #
 
 ext/Cwd
-ext/Sys/Syslog
 ext/Time/HiRes
 ext/Win32API/File