openbsd-ports/lang/python/2.7/patches/patch-Python_ceval_c
fgsch e7a4d15602 - revert the handling of async callbacks pre 2.7 for the time being. this
fixes the hangs and some other problems and allow us to move further while
  a proper fix is investigated. as a result remove the patches to test_io
  and test_socket, they are ok now.
- remove the distutils diff. it doesn't seem right, nobody really knows why
  it's there and it actually breaks things with this version.
- bump
discussed and ok rpointel martynas sthen djm
2011-05-05 23:25:44 +00:00

13 lines
445 B
Plaintext

$OpenBSD: patch-Python_ceval_c,v 1.1 2011/05/05 23:25:44 fgsch Exp $
--- Python/ceval.c.orig Thu Apr 28 11:50:30 2011
+++ Python/ceval.c Thu Apr 28 11:50:52 2011
@@ -385,7 +385,7 @@ PyEval_RestoreThread(PyThreadState *tstate)
#endif
*/
-#ifdef WITH_THREAD
+#if defined(WITH_THREAD) && !defined(__OpenBSD__)
/* The WITH_THREAD implementation is thread-safe. It allows
scheduling to be made from any thread, and even from an executing