www/mod_perl2: fix build with perl >= 5.33.7

- patch from upstream
  916376b455

PR:		260511
Approved by:	fluffy

(cherry picked from commit fb780db214)
This commit is contained in:
Kurt Jaeger 2021-12-18 15:06:32 +01:00
parent 113de59fd2
commit f5ba47a031
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- src/modules/perl/modperl_perl.c.orig 2019-10-05 11:04:42 UTC
+++ src/modules/perl/modperl_perl.c
@@ -268,7 +268,7 @@ void modperl_hash_seed_set(pTHX)
#ifdef MP_NEED_HASH_SEED_FIXUP
if (MP_init_hash_seed_set) {
#if MP_PERL_VERSION_AT_LEAST(5, 17, 6)
- memcpy(&PL_hash_seed, &MP_init_hash_seed,
+ memcpy(PL_hash_seed, &MP_init_hash_seed,
sizeof(PL_hash_seed) > sizeof(MP_init_hash_seed) ?
sizeof(MP_init_hash_seed) : sizeof(PL_hash_seed));
PL_hash_seed_set = MP_init_hash_seed_set;

View File

@ -12,4 +12,4 @@ written for mod_perl, everything from persistent database connections, to
templating sytems, to complete XML content delivery systems. Web sites like
Slashdot and Wired Magazine use mod_perl.
WWW: http://perl.apache.org/
WWW: https://perl.apache.org/