summaryrefslogtreecommitdiffstats
path: root/Modules/dbmmodule.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-15 03:38:12 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-15 03:38:12 (GMT)
commitae90f8da24d825285a0d12023412e96b58084f6c (patch)
treefeeff1e887cb09801f8da03224df4459743d8910 /Modules/dbmmodule.c
parentbbba66eb7d52c0f00b306009d37e8b488cdfe616 (diff)
downloadcpython-ae90f8da24d825285a0d12023412e96b58084f6c.zip
cpython-ae90f8da24d825285a0d12023412e96b58084f6c.tar.gz
cpython-ae90f8da24d825285a0d12023412e96b58084f6c.tar.bz2
Trent Mick points out that the BSD DB also provides an ndbm compatibility
layer. If that is available, consider that as an option as well.
Diffstat (limited to 'Modules/dbmmodule.c')
-rw-r--r--Modules/dbmmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c
index afb039b..9fb1225 100644
--- a/Modules/dbmmodule.c
+++ b/Modules/dbmmodule.c
@@ -13,6 +13,8 @@
*/
#if defined(HAVE_NDBM_H)
#include <ndbm.h>
+#elif defined(HAVE_DB1_NDBM_H)
+#include <db1/ndbm.h>
#elif defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
#else