[Python-checkins] python/dist/src/Modules dbmmodule.c,2.29,2.30

montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Fri, 14 Jun 2002 13:30:33 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv6862/Modules

Modified Files:
	dbmmodule.c 
Log Message:
This introduces stricter library/header file checking for the Berkeley DB
library.  Since multiple versions can be installed simultaneously, it's
crucial that you only select libraries and header files which are compatible
with each other.  Version checking is done from highest version to lowest.
Building using version 1 of Berkeley DB is disabled by default because of
the hash file bugs people keep rediscovering.  It can be enabled by
uncommenting a few lines in setup.py.  Closes patch 553108.


Index: dbmmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/dbmmodule.c,v
retrieving revision 2.29
retrieving revision 2.30
diff -C2 -d -r2.29 -r2.30
*** dbmmodule.c	3 Mar 2002 02:59:15 -0000	2.29
--- dbmmodule.c	14 Jun 2002 20:30:31 -0000	2.30
***************
*** 19,25 ****
  static char *which_dbm = "GNU gdbm";  /* EMX port of GDBM */
  #endif
- #elif defined(HAVE_DB1_NDBM_H)
- #include <db1/ndbm.h>
- static char *which_dbm = "BSD db";
  #elif defined(HAVE_GDBM_NDBM_H)
  #include <gdbm/ndbm.h>
--- 19,22 ----