Description: Fix FTBFS with perl >= 5.24: map my_do_vecget to Perl_do_vecget
 The preprocessor guard wrapped the inner `#if PERL_VERSION_GT(5,36,'*')` in
 an outer `#if defined PERL_VERSION_GT`, so for perl 5.24..5.36 (including
 5.36, used on openKylin huanghe) neither the vendored static my_do_vecget
 nor the `#define my_do_vecget Perl_do_vecget` fallback was active, causing
 an implicit-function-declaration build error. Collapse the two conditionals
 into a single `&&` guard so the fallback applies to all perls <= 5.36.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=148421
Last-Update: 2026-09-04

--- liblmdb-file-perl-0.14.orig/LMDB.xs
+++ liblmdb-file-perl-0.14/LMDB.xs
@@ -110,8 +110,7 @@ S_mySvPVutf8(pTHX_ SV *sv, STRLEN *const
 
 typedef IV MyInt;
 
-#if defined PERL_VERSION_GT
-#if PERL_VERSION_GT(5,36,'*')
+#if defined PERL_VERSION_GT && PERL_VERSION_GT(5,36,'*')
 /* lifted from Perl core and simplified [rt.cpan.org #148421] */
 STATIC UV
 my_do_vecget(pTHX_ SV *sv, STRLEN offset, int size)
@@ -154,7 +153,6 @@ my_do_vecget(pTHX_ SV *sv, STRLEN offset
     retnum = (s[uoffset] >> bitoffs) & nBIT_MASK(size);
     return retnum;
 }
-#endif
 #else
 #define my_do_vecget	Perl_do_vecget
 #endif
