On platforms that use strict library export lists, the libdb2 btree
debugging program bttest won't build with -DDEBUG or -DSTATISTICS
because some needed functions aren't in the export list.
Add the missing bt_debug.c and mpool.c functions to libdb.exports.
Stub out these functions when built without -DDEBUG or -DSTATISTICS to
avoid unreferenced symbols, because conditionalizing library export
lists isn't easy.
ticket: 8478
(void)fflush(tracefp);
return (0);
}
+#else
+int
+__bt_dump(DB *dbp)
+{
+ return (0);
+}
+int
+__bt_dmpage(PAGE *h)
+{
+ return (0);
+}
+int
+__bt_dnpage(DB *dbp, db_pgno_t pgno)
+{
+ return (0);
+}
+int
+__bt_dpage(DB *dbp, PAGE *h)
+{
+ return (0);
+}
#endif
#ifdef STATISTICS
(void)fflush(tracefp);
return (0);
}
+#else
+int
+__bt_stat(DB *dbp)
+{
+ return (0);
+}
#endif
__kdb2_bt_defpfx
__kdb2_bt_deleaf
__kdb2_bt_delete
+__kdb2_bt_dmpage
+__kdb2_bt_dnpage
+__kdb2_bt_dpage
+__kdb2_bt_dump
__kdb2_bt_fd
__kdb2_bt_free
__kdb2_bt_get
__kdb2_bt_seq
__kdb2_bt_setcur
__kdb2_bt_split
+__kdb2_bt_stat
__kdb2_bt_sync
__kdb2_call_hash
__kdb2_cursor_creat
kdb2_mpool_new
kdb2_mpool_open
kdb2_mpool_put
+kdb2_mpool_stat
kdb2_mpool_sync
kdb2_nextkey
kdb2_store
}
(void)fprintf(stderr, "\n");
}
+#else
+void
+mpool_stat(mp)
+ MPOOL *mp;
+{
+}
#endif
int mpool_put __P((MPOOL *, void *, u_int));
int mpool_sync __P((MPOOL *));
int mpool_close __P((MPOOL *));
-#ifdef STATISTICS
+
void mpool_stat __P((MPOOL *));
-#endif
+
__END_DECLS