From: Guido van Rossum Date: Sat, 3 Oct 1998 05:13:27 +0000 (+0000) Subject: Win32 port. Patches by Milton L. Hankins. X-Git-Tag: v1.5.2a2~163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3;p=python Win32 port. Patches by Milton L. Hankins. --- diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c index d916c33366..c8e3369f07 100644 --- a/Modules/gdbmmodule.c +++ b/Modules/gdbmmodule.c @@ -41,6 +41,11 @@ PERFORMANCE OF THIS SOFTWARE. #include #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);