Skip Menu |

This queue is for tickets about the CDB_File CPAN distribution.

Report information
The Basics
Id: 37589
Status: resolved
Priority: 0/
Queue: CDB_File

People
Owner: Nobody in particular
Requestors: mike.bristow [...] thus.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.96
Fixed in: 0.97



Subject: Cannot compile with gcc 2.95
The attached patch is required to compile with gcc 2.95 (and probably other pre-C99 compilers). I realize that you probably don't care too much about such ancient systems, but as the patch is really small you might like to apply it anyway. (Please don't ask why I'm using such an ancient machine)
Subject: nonc99.patch
? CDB_File.bs ? CDB_File.c ? Makefile ? blib ? pm_to_blib Index: CDB_File.xs =================================================================== RCS file: /cvsroot/upstream/cpan/CDB_File/CDB_File.xs,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 CDB_File.xs --- CDB_File.xs 21 Mar 2008 15:40:57 -0000 1.1.1.3 +++ CDB_File.xs 10 Jul 2008 13:30:58 -0000 @@ -476,8 +476,9 @@ } ST(0) = sv_newmortal(); if (found) { + U32 dlen; SvUPGRADE(ST(0), SVt_PV); - U32 dlen = cdb_datalen(this); + dlen = cdb_datalen(this); (void)SvPOK_only(ST(0)); SvGROW(ST(0), dlen + 1); SvCUR_set(ST(0), dlen);
Released in 0.97