]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - Makefile.PL
Add a basic thread safety test in t/50-threads.t
[perl/modules/autovivification.git] / Makefile.PL
index a19c99a2cff4b04ec0fb86c63705c7fac2b3edd5..3c510a82b90fc9325639337739b662a6c6eefba6 100644 (file)
@@ -1,4 +1,4 @@
-use 5.008;
+use 5.008001;
 
 use strict;
 use warnings;
@@ -8,7 +8,12 @@ my @DEFINES;
 
 # Threads, Windows and 5.8.x don't seem to be best friends
 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
- push @DEFINES, '-DI_MULTIPLICITY=0';
+ push @DEFINES, '-DA_MULTIPLICITY=0';
+}
+
+# Fork emulation got "fixed" in 5.10.1
+if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
+ push @DEFINES, '-DA_FORKSAFE=0';
 }
 
 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
@@ -51,7 +56,7 @@ WriteMakefile(
  PL_FILES         => {},
  @DEFINES,
  PREREQ_PM        => \%PREREQ_PM,
- MIN_PERL_VERSION => 5.008,
+ MIN_PERL_VERSION => 5.008001,
  META_MERGE       => \%META,
  dist             => {
   PREOP    => "pod2text $file > \$(DISTVNAME)/README",