From: Jarkko Hietaniemi Date: Mon, 12 Mar 2007 22:01:34 +0000 (-0400) Subject: DB_File with g++ and db v1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=157686ebd1035e2697e51fcfa2e7de145ea36e05;p=p5sagit%2Fp5-mst-13.2.git DB_File with g++ and db v1 Message-ID: <45F605FE.1090606@iki.fi> p4raw-id: //depot/perl@30562 --- diff --git a/ext/DB_File/DB_File.xs b/ext/DB_File/DB_File.xs index 6e91dda..5973138 100644 --- a/ext/DB_File/DB_File.xs +++ b/ext/DB_File/DB_File.xs @@ -1192,7 +1192,7 @@ SV * sv ; Flags |= DB_TRUNCATE ; #endif - status = db_open(name, RETVAL->type, Flags, mode, NULL, openinfo, &RETVAL->dbp) ; + status = db_open(name, RETVAL->type, Flags, mode, NULL, (DB_INFO*) openinfo, &RETVAL->dbp) ; if (status == 0) #if DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 6 status = (RETVAL->dbp->cursor)(RETVAL->dbp, NULL, &RETVAL->cursor) ;