# HG changeset patch # User Christian Brabandt # Date 1464861606 -7200 # Node ID 20e7b99c33d4355a5d004873b3a243cb5242de1e # Parent 7cae03af1bb48fa9bfbfa2bd7318d9dc4dfb32ee commit https://github.com/vim/vim/commit/cf190c6f017563de1bdbf854b3376522b8b2748f Author: Bram Moolenaar Date: Thu Jun 2 11:54:06 2016 +0200 patch 7.4.1869 Problem: Can't build with old version of Perl. Solution: Define PERLIO_FUNCS_DECL. (Tom G. Christensen) diff --git a/src/if_perl.xs b/src/if_perl.xs --- a/src/if_perl.xs +++ b/src/if_perl.xs @@ -61,6 +61,17 @@ # include #endif +/* Workaround for perl < 5.8.7 */ +#ifndef PERLIO_FUNCS_DECL +# ifdef PERLIO_FUNCS_CONST +# define PERLIO_FUNCS_DECL(funcs) const PerlIO_funcs funcs +# define PERLIO_FUNCS_CAST(funcs) (PerlIO_funcs*)(funcs) +# else +# define PERLIO_FUNCS_DECL(funcs) PerlIO_funcs funcs +# define PERLIO_FUNCS_CAST(funcs) (funcs) +# endif +#endif + /* * Work around clashes between Perl and Vim namespace. proto.h doesn't * include if_perl.pro and perlsfio.pro when IN_PERL_FILE is defined, because diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1869, +/**/ 1868, /**/ 1867,