about summary refs log tree commit diff
path: root/db/btree
diff options
context:
space:
mode:
Diffstat (limited to 'db/btree')
-rw-r--r--db/btree/btree.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/btree/btree.h b/db/btree/btree.h
index ab4c5b5ec4..45f7c94ed4 100644
--- a/db/btree/btree.h
+++ b/db/btree/btree.h
@@ -43,6 +43,18 @@
 
 #include <mpool.h>
 
+#ifdef _LIBC
+/* In the GNU C library we must not pollute the namespace because libdb is
+   needed by libnss_db.  */
+#define mpool_open __mpool_open
+#define mpool_filter __mpool_filter
+#define mpool_new __mpool_new
+#define mpool_get __mpool_get
+#define mpool_put __mpool_put
+#define mpool_sync __mpool_sync
+#define mpool_close __mpool_close
+#endif
+
 #define	DEFMINKEYPAGE	(2)		/* Minimum keys per page */
 #define	MINCACHE	(5)		/* Minimum cached pages */
 #define	MINPSIZE	(512)		/* Minimum page size */