[Python-checkins] CVS: python/dist/src/Modules dbmmodule.c,2.22,2.23
Fred L. Drake
python-dev@python.org
Thu, 14 Sep 2000 08:48:22 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15650/Modules
Modified Files:
dbmmodule.c
Log Message:
Use the configure support to determine which ndbm.h header to include.
Index: dbmmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/dbmmodule.c,v
retrieving revision 2.22
retrieving revision 2.23
diff -C2 -r2.22 -r2.23
*** dbmmodule.c 2000/09/01 23:29:26 2.22
--- dbmmodule.c 2000/09/14 15:48:06 2.23
***************
*** 8,12 ****
--- 8,22 ----
#include <sys/stat.h>
#include <fcntl.h>
+
+ /* Some Linux systems install gdbm/ndbm.h, but not ndbm.h. This supports
+ * whichever configure was able to locate.
+ */
+ #if defined(HAVE_NDBM_H)
#include <ndbm.h>
+ #elif defined(HAVE_GDBM_NDBM_H)
+ #include <gdbm/ndbm.h>
+ #else
+ #error "No ndbm.h available!"
+ #endif
typedef struct {