From: Steve Hay Date: Thu, 7 May 2009 08:26:05 +0000 (+0100) Subject: Fix ExtUtils::Miniperl on Win32 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3ecadf9633330795163fd87481c668fa7b6bcc31;p=p5sagit%2Fp5-mst-13.2.git Fix ExtUtils::Miniperl on Win32 Default configuration builds on Win32 require perlmain.c to #include perlapi.h (e.g. via XSUB.h) to avoid linker errors over PL_do_undump and PL_use_safe_putenv. From: Ben Morrow Date: Wed, 6 May 2009 22:38:01 +0100 Message-ID: <20090506213801.GA9074@osiris.mauzo.dyndns.org> --- diff --git a/minimod.pl b/minimod.pl index bd945c2..a5bd172 100644 --- a/minimod.pl +++ b/minimod.pl @@ -37,6 +37,7 @@ open MINI, "miniperlmain.c"; while () { last if /Do not delete this line--writemain depends on it/; print; + /#include "perl.h"/ and print qq/#include "XSUB.h"\n/; } print <<'END';