diff options
author | Guido van Rossum <guido@python.org> | 1998-10-03 05:13:27 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-03 05:13:27 (GMT) |
commit | b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3 (patch) | |
tree | fad35f98b8df94fa87e76f6c3d910517e3be134d /Modules | |
parent | 69a4ab5a04c957758cd0264c6708418b10867405 (diff) | |
download | cpython-b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3.zip cpython-b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3.tar.gz cpython-b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3.tar.bz2 |
Win32 port. Patches by Milton L. Hankins.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gdbmmodule.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c index d916c33..c8e3369f 100644 --- a/Modules/gdbmmodule.c +++ b/Modules/gdbmmodule.c @@ -41,6 +41,11 @@ PERFORMANCE OF THIS SOFTWARE. #include <fcntl.h> #include "gdbm.h" +#ifdef WIN32 +#include "gdbmerrno.h" +extern const char * gdbm_strerror(gdbm_error); +#endif + static char gdbmmodule__doc__[] = "\ This module provides an interface to the GNU DBM (GDBM) library.\n\ \n\ @@ -425,7 +430,7 @@ char *name; } static PyTypeObject Dbmtype = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(0) 0, "gdbm", sizeof(dbmobject), @@ -515,6 +520,7 @@ void initgdbm() { PyObject *m, *d; + Dbmtype.ob_type = &PyType_Type; m = Py_InitModule4("gdbm", dbmmodule_methods, gdbmmodule__doc__, (PyObject *)NULL, PYTHON_API_VERSION); |