RHEL 6 and Centos 6 don't use newer versions of VIM, but ok. I think this issue 
can be solved by editing #ifdef directive. Attaching proposed patch.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -up vim80/src/if_perl.xs.ftbfs-perl526 vim80/src/if_perl.xs
--- vim80/src/if_perl.xs.ftbfs-perl526	2017-05-30 13:12:39.502986854 +0200
+++ vim80/src/if_perl.xs	2017-05-30 13:13:06.380757240 +0200
@@ -619,7 +619,7 @@ static struct {
 /* Work around for perl-5.18.
  * For now, only the definitions of S_SvREFCNT_dec are needed in
  * "perl\lib\CORE\inline.h". */
-# if (PERL_REVISION == 5) && (PERL_VERSION >= 18)
+# if (PERL_REVISION == 5) && (PERL_VERSION >= 18) && (PERL_VERSION <= 24)
 static void
 S_SvREFCNT_dec(pTHX_ SV *sv)
 {

Raspunde prin e-mail lui