Subject: | make fails with syntax error for 3.05 on OpenBSD/gcc 2.95.2 |
Devel::PPPort 3.05 fails to compile on OpenBSD with the default 2.95.2 compiler. The following patch gets it to compile and pass all the tests.
--- PPPort.xs.orig Tue Feb 1 16:04:43 2005
+++ PPPort.xs Tue Feb 1 16:04:14 2005
@@ -102,8 +102,9 @@
{
dXSARGS;
dXSTARG;
+ IV iv;
SP -= items;
- IV iv = SvIV(ST(0)) + 1;
+ iv = SvIV(ST(0)) + 1;
PUSHi(iv);
XSRETURN(1);
}