X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2Fpython-2.5.1-pysqlite.patch;fp=python%2Fpython-2.5.1-pysqlite.patch;h=ce4f93682620ef04515e019d1251d0458c238cb8;hb=63a2fa13b135c765210e7331113a9bcd99949b3b;hp=0000000000000000000000000000000000000000;hpb=bce5b966788b7d38e7235291e155272f1dc42d6a;p=fedora-mingw.git diff --git a/python/python-2.5.1-pysqlite.patch b/python/python-2.5.1-pysqlite.patch new file mode 100644 index 0000000..ce4f936 --- /dev/null +++ b/python/python-2.5.1-pysqlite.patch @@ -0,0 +1,33 @@ +diff -up Python-2.5.1/Modules/_sqlite/cache.h.pysqlite Python-2.5.1/Modules/_sqlite/cache.h +--- Python-2.5.1/Modules/_sqlite/cache.h.pysqlite 2006-04-23 16:24:26.000000000 +0100 ++++ Python-2.5.1/Modules/_sqlite/cache.h 2007-10-25 11:21:31.000000000 +0100 +@@ -64,7 +64,7 @@ extern PyTypeObject CacheType; + int node_init(Node* self, PyObject* args, PyObject* kwargs); + void node_dealloc(Node* self); + +-int cache_init(Cache* self, PyObject* args, PyObject* kwargs); ++int pysqlite_cache_init(Cache* self, PyObject* args, PyObject* kwargs); + void cache_dealloc(Cache* self); + PyObject* cache_get(Cache* self, PyObject* args); + +diff -up Python-2.5.1/Modules/_sqlite/cache.c.pysqlite Python-2.5.1/Modules/_sqlite/cache.c +--- Python-2.5.1/Modules/_sqlite/cache.c.pysqlite 2006-04-23 16:24:26.000000000 +0100 ++++ Python-2.5.1/Modules/_sqlite/cache.c 2007-10-25 11:22:10.000000000 +0100 +@@ -54,7 +54,7 @@ void node_dealloc(Node* self) + self->ob_type->tp_free((PyObject*)self); + } + +-int cache_init(Cache* self, PyObject* args, PyObject* kwargs) ++int pysqlite_cache_init(Cache* self, PyObject* args, PyObject* kwargs) + { + PyObject* factory; + int size = 10; +@@ -352,7 +352,7 @@ PyTypeObject CacheType = { + 0, /* tp_descr_get */ + 0, /* tp_descr_set */ + 0, /* tp_dictoffset */ +- (initproc)cache_init, /* tp_init */ ++ (initproc)pysqlite_cache_init, /* tp_init */ + 0, /* tp_alloc */ + 0, /* tp_new */ + 0 /* tp_free */