$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
