Skip to content

Commit 0514e90

Browse files
committed
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.
1 parent a144eec commit 0514e90

4 files changed

Lines changed: 298 additions & 291 deletions

File tree

Modules/dbmmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
*/
1414
#if defined(HAVE_NDBM_H)
1515
#include <ndbm.h>
16+
#elif defined(HAVE_DB1_NDBM_H)
17+
#include <db1/ndbm.h>
1618
#elif defined(HAVE_GDBM_NDBM_H)
1719
#include <gdbm/ndbm.h>
1820
#else

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,9 @@
524524
/* Define if you have the <db_185.h> header file. */
525525
#undef HAVE_DB_185_H
526526

527+
/* Define if you have the <db1/ndbm.h> header file. */
528+
#undef HAVE_DB1_NDBM_H
529+
527530
/* Define if you have the <db.h> header file. */
528531
#undef HAVE_DB_H
529532

0 commit comments

Comments
 (0)