summaryrefslogtreecommitdiff
path: root/dist/PathTools
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2018-07-26 13:12:56 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2018-07-26 13:13:23 +0100
commitcbc1b4151f667bf4dd52185593e57c63761d4fcc (patch)
treeda5803387203174af7b0fd60fc125adb1b8152f8 /dist/PathTools
parent06aba1c3a22b68c91526d02e62edcac3f5d98b15 (diff)
downloadperl-cbc1b4151f667bf4dd52185593e57c63761d4fcc.tar.gz
remove distros from needing ppport.h in core
These changes are towards a goal of removing mkppport one day as part of a optimization for parallel building (less deps needed before XS extensions are built). This is a follow-on patch to the dummy ppport.h trick in Perl #128438 ticket that had issues. -for Time::HiRes the DEFINE() in Makefile.PL can't be be in sub init() because that sub isn't called on windows -SLU has not needed ppport.h in core since commit 5e99e069f5 aka 1.47 import from cpan -Cwd used to be a no ppport.h since 3.25, in 3.30_02 the code (Cwd.xs) was deleted/broken under commit 9bc94e3dae, or changes file "Remove more special logic required for core perl.". Put back the Cwd.xs code and remove Cwd from the ppport.h list
Diffstat (limited to 'dist/PathTools')
-rw-r--r--dist/PathTools/Cwd.pm2
-rw-r--r--dist/PathTools/Cwd.xs12
2 files changed, 8 insertions, 6 deletions
diff --git a/dist/PathTools/Cwd.pm b/dist/PathTools/Cwd.pm
index 58af9352db..16d5b11e90 100644
--- a/dist/PathTools/Cwd.pm
+++ b/dist/PathTools/Cwd.pm
@@ -3,7 +3,7 @@ use strict;
use Exporter;
-our $VERSION = '3.74';
+our $VERSION = '3.75';
my $xs_version = $VERSION;
$VERSION =~ tr/_//d;
diff --git a/dist/PathTools/Cwd.xs b/dist/PathTools/Cwd.xs
index 2ca8acd6ab..8662400e47 100644
--- a/dist/PathTools/Cwd.xs
+++ b/dist/PathTools/Cwd.xs
@@ -7,11 +7,13 @@
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
-#define NEED_croak_xs_usage
-#define NEED_sv_2pv_flags
-#define NEED_my_strlcpy
-#define NEED_my_strlcat
-#include "ppport.h"
+#ifndef NO_PPPORT_H
+# define NEED_croak_xs_usage
+# define NEED_sv_2pv_flags
+# define NEED_my_strlcpy
+# define NEED_my_strlcat
+# include "ppport.h"
+#endif
#ifdef I_UNISTD
# include <unistd.h>