Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf604891

Browse files
committed
Allow building with perl 5.14.
Patch from Alex Hunsaker.
1 parentb9544a0 commitf604891

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
@@ -687,7 +687,7 @@ plperl_trusted_init(void)
687687
if (!isGV_with_GP(sv)|| !GvCV(sv))
688688
continue;
689689
SvREFCNT_dec(GvCV(sv));/* free the CV */
690-
GvCV(sv)=NULL;/* prevent call via GV */
690+
GvCV_set(sv,NULL);/* prevent call via GV */
691691
}
692692
hv_clear(stash);
693693
/* invalidate assorted caches */

‎src/pl/plperl/plperl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@
4343
#undef bool
4444
#endif
4545

46+
/* supply GvCV_set if it's missing - ppport.h doesn't supply it, unfortunately */
47+
#ifndefGvCV_set
48+
#defineGvCV_set(gv,cv)(GvCV(gv) = cv)
49+
#endif
50+
4651
/* routines from spi_internal.c */
4752
intspi_DEBUG(void);
4853
intspi_LOG(void);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp