present, and checking for $Config{d_pseudofork} is no good for dual-
lived modules that must work with older perls, so do a more elaborate
test (as per existing Test-Simple and IO test scripts).
p4raw-id: //depot/perl@32889
BEGIN {
require Config;
- if ( $Config::Config{d_fork} ) {
+ my $can_fork = $Config::Config{d_fork} ||
+ (($^O eq 'MSWin32' || $^O eq 'NetWare') and
+ $Config::Config{useithreads} and
+ $Config::Config{ccflags} =~ /-DPERL_IMPLICIT_SYS/
+ );
+ if ( $can_fork ) {
print "1..8\n";
} else {
print "1..0 # Skip No fork available\n";