Cwd doesn't need ppport.h in core
[p5sagit/p5-mst-13.2.git] / ext / Cwd / Makefile.PL
index 29b8de5..02e5a3b 100644 (file)
@@ -2,4 +2,9 @@ use ExtUtils::MakeMaker;
 WriteMakefile(
     NAME    => 'Cwd',
     VERSION_FROM => '../../lib/Cwd.pm',
+    (
+        (grep { $_ eq 'PERL_CORE=1' } @ARGV)
+            ? ()
+            : ('DEFINE' => '-DUSE_PPPORT_H')
+    ),
 );