1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/devel/p5-Alias/files/patch-Alias.xs
Philip M. Gollucci 7aedaa2e2f - Fix build with perl 5.13.10+ in prep for lang/perl5.14 being default
GvCV et al can no longer be used in an lvalue

PR:         ports/165457
With Hat:   perl@
2012-03-07 04:00:26 +00:00

28 lines
691 B
Plaintext

--- ./Alias.xs.orig 1999-05-01 02:11:09.000000000 +0000
+++ ./Alias.xs 2012-03-07 03:17:05.659746489 +0000
@@ -21,6 +21,13 @@
#endif
+#ifndef GvCV_set
+# define GvCV_set(gv,cv) (GvGP(gv)->gp_cv = (cv))
+#endif
+#ifndef GvGP_set
+# define GvGP_set(gv,gp) ((gv)->sv_u.svu_gp = (gp))
+#endif
+
static void process_flag _((char *varname, SV **svp, char **strp, STRLEN *lenp));
static void
@@ -205,8 +212,8 @@
save_gp(gv,TRUE); /* hide previous entry in symtab */
break;
case SVt_PVCV:
- SAVESPTR(GvCV(gv));
- GvCV(gv) = Null(CV*);
+ SAVESPTR(GvGP(gv)->gp_cv);
+ GvCV_set(gv,Null(CV*));
break;
default:
save_scalar(gv);