Skip to content

Commit ccd69b8

Browse files
committed
Allow building with perl 5.14.
Patch from Alex Hunsaker.
1 parent 36a1ba9 commit ccd69b8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/pl/plperl/plperl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ plperl_trusted_init(void)
926926
if (!isGV_with_GP(sv) || !GvCV(sv))
927927
continue;
928928
SvREFCNT_dec(GvCV(sv)); /* free the CV */
929-
GvCV(sv) = NULL; /* prevent call via GV */
929+
GvCV_set(sv, NULL); /* prevent call via GV */
930930
}
931931
hv_clear(stash);
932932

src/pl/plperl/plperl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@
8585
(U32)HeKUTF8(he))
8686
#endif
8787

88+
/* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
89+
#ifndef GvCV_set
90+
#define GvCV_set(gv, cv) (GvCV(gv) = cv)
91+
#endif
92+
8893
/* declare routines from plperl.c for access by .xs files */
8994
HV *plperl_spi_exec(char *, int);
9095
void plperl_return_next(SV *);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy