2007-06-14 15:48:59 +02:00
|
|
|
--- DBI.xs
|
|
|
|
+++ DBI.xs
|
|
|
|
@@ -265,6 +265,10 @@
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
/* publish address of dbistate so dynaloaded DBD's can find it */
|
|
|
|
sv_setiv(perl_get_sv(DBISTATE_PERLNAME,1), PTR2IV(DBIS));
|
|
|
|
+#if defined(MULTIPLICITY) || defined(PERL_OBJECT) || defined(PERL_CAPI)
|
|
|
|
+ /* needed if sizeof(IV) != sizeof(void *) */
|
|
|
|
+ (*(INT2PTR(dbistate_t**, &SvIVX(DBISTATE_ADDRSV)))) = DBIS;
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
DBISTATE_INIT; /* check DBD code to set DBIS from DBISTATE_PERLNAME */
|
|
|
|
|