	* Fixes build with --disable-thread
	Submitted at: http://bugzilla.gnome.org/show_bug.cgi?id=374603

--- gobject/pygobject-private.h.orig	Wed May 13 23:56:45 2009
+++ gobject/pygobject-private.h	Tue Jul 21 09:02:57 2009
@@ -32,12 +32,18 @@ extern struct _PyGObject_Functions pygob
 
 #define pyg_threads_enabled (pygobject_api_functions.threads_enabled)
 
+#ifdef DISABLE_THREADING
+#define pyg_gil_state_ensure() 0
+#define pyg_gil_state_release(state) G_STMT_START {     \
+    } G_STMT_END
 
+#else
 #define pyg_gil_state_ensure() (pygobject_api_functions.threads_enabled? (PyGILState_Ensure()) : 0)
 #define pyg_gil_state_release(state) G_STMT_START {     \
     if (pygobject_api_functions.threads_enabled)        \
         PyGILState_Release(state);                      \
     } G_STMT_END
+#endif
 
 #define pyg_begin_allow_threads                         \
     G_STMT_START {                                      \
