This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In makedef.pl, NetWare can't export perl_clone_host without USE_ITHREADS.
authorNicholas Clark <nick@ccl4.org>
Mon, 25 Jul 2011 12:13:51 +0000 (14:13 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 1 Aug 2011 09:53:54 +0000 (11:53 +0200)
NetWare/nw5.c conditionally compiles perl_clone_host only if USE_ITHREADS is
defined. It can't be added to the export list if it isn't compiled.
NetWare/config.wc has useithreads='define'

makedef.pl

index 8478390..22d989e 100644 (file)
@@ -221,8 +221,10 @@ elsif ($PLATFORM eq 'netware') {
        print "EXPORTS\n";
        }
        if ($define{PERL_IMPLICIT_SYS}) {
-           ++$export{$_}
-               foreach qw(perl_get_host_info perl_alloc_override perl_clone_host);
+           ++$export{$_} foreach qw(perl_get_host_info perl_alloc_override);
+       }
+       if ($define{USE_ITHREADS} and $define{PERL_IMPLICIT_SYS}) {
+           ++$export{perl_clone_host};
        }
 }