summaryrefslogtreecommitdiff
path: root/lang/python/files/patch-Include::weakrefobject.h
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-11-21 03:15:02 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-11-21 03:15:02 +0000
commitf2e9fdbd86cdb57fa2438b0b7df68c51045ee117 (patch)
treebf98e95f187d42c8143f4994c68927afea199deb /lang/python/files/patch-Include::weakrefobject.h
parentstatue@freebsd.sinica.edu.tw has asked for all the maintained (diff)
Add fix for a fatal bug in type's GC handling causes segfaults.
http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Misc/NEWS?r1=1.831.4.75&r2=1.831.4.76&diff_format=u Obtained from: Python CVS
Diffstat (limited to 'lang/python/files/patch-Include::weakrefobject.h')
-rw-r--r--lang/python/files/patch-Include::weakrefobject.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/python/files/patch-Include::weakrefobject.h b/lang/python/files/patch-Include::weakrefobject.h
new file mode 100644
index 000000000000..c3d47e307279
--- /dev/null
+++ b/lang/python/files/patch-Include::weakrefobject.h
@@ -0,0 +1,11 @@
+--- Include/weakrefobject.h.orig Mon Aug 12 16:21:58 2002
++++ Include/weakrefobject.h Fri Nov 21 11:39:53 2003
+@@ -39,6 +39,8 @@
+
+ PyAPI_FUNC(long) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
+
++PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);
++
+ #define PyWeakref_GET_OBJECT(ref) (((PyWeakReference *)(ref))->wr_object)
+
+