Re: patch for dynamic perl 5.8
- Dan Sharp wrote:
> > > Dynamic perl feature can't be used with recent ActivePerl 5.8.Looks good to me, I'll include this.
> > > If you want to use it, try to apply attached patch.
> >Looks good to me. I'll include the patch. I'll send it out after a
> >while (if no one makes remarks).
> It works well for me. The attached patches add support for Cygwin, MinGW,
> and Borland with ActivePerl 5.8.0. The patches for Cygwin and MinGW simply
> remove the hard-coded references to 5.6 and change them to use $(PERL_VER)
> The fix for Borland is debatable. Right now, I get the errorHmm, this would require a configure-like check to figure it out.
> Error E2450 c:/perl\lib\core\thrdvar.h 85: Undefined structure '_stati64'
> Error E2450 c:/perl\lib\core\thrdvar.h 86: Undefined structure '_stati64'
> In C:\bc5\include\sys\stat.h, the structure is 'stati64', and '_stati64' is
> a function with the prototype
> int _RTLENTRY _EXPFUNC _stati64(const char *__path, struct stati64
> The fix I made was to '#define _stati64 stati64' in if_perl.xs beforeI would think this works, so long as stati64 is the right structure. On
> including the perl headers. This works for my quick test of :perl
> VIM::Msg("Hi!"), but I haven't tested anything else. The real fix is
> probably to change c:\perl\lib\core\dosish.h from
the other hand, "struct stat" might have to be used. Can you somehow
check that stat() is redefined to _stati64()?
hundred-and-one symptoms of being an internet addict:
105. When someone asks you for your address, you tell them your URL.
/// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
/// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///