[Python-Dev] Re: making dbmmodule still broken
Skip Montanaro
skip@pobox.com
Tue, 18 Jun 2002 21:03:57 -0500
I wrote:
... here's what I propose (and what changes I just made locally):
I forgot about one other change. In dbmmodule.c I #include <db.h> if
HAVE_BERKDB_H is defined:
#if defined(HAVE_NDBM_H)
#include <ndbm.h>
#if defined(PYOS_OS2) && !defined(PYCC_GCC)
static char *which_dbm = "ndbm";
#else
static char *which_dbm = "GNU gdbm"; /* EMX port of GDBM */
#endif
#elif defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
static char *which_dbm = "GNU gdbm";
#elif defined(HAVE_BERKDB_H)
#include <db.h>
static char *which_dbm = "Berkeley DB";
#else
#error "No ndbm.h available!"
#endif
Skip