2013-05-15 00:26:49 +02:00
|
|
|
Fix gio/gcancellable.c build when thread support is disabled
|
|
|
|
|
2013-06-07 15:18:46 +02:00
|
|
|
Changes:
|
|
|
|
Updated for 2.36.1
|
|
|
|
|
2013-05-15 00:26:49 +02:00
|
|
|
Signed-off-by: "Samuel Martin" <s.martin49@gmail.com>
|
2013-06-07 15:18:46 +02:00
|
|
|
Signed-off-by: "Spenser Gilliland" <spenser@gillilanding.com>
|
2013-05-15 00:26:49 +02:00
|
|
|
---
|
2013-06-07 15:18:46 +02:00
|
|
|
--- libglib2-2.36.1.orig/gio/gcancellable.c 2013-03-13 08:39:09.000000000 -0500
|
|
|
|
+++ libglib2-2.36.1/gio/gcancellable.c 2013-05-26 10:49:32.366019891 -0500
|
|
|
|
@@ -267,7 +267,9 @@
|
2013-05-15 00:26:49 +02:00
|
|
|
while (priv->cancelled_running)
|
|
|
|
{
|
|
|
|
priv->cancelled_running_waiting = TRUE;
|
|
|
|
+#if defined(G_THREADS_ENABLED)
|
2013-06-07 15:18:46 +02:00
|
|
|
g_cond_wait (&cancellable_cond, &cancellable_mutex);
|
2013-05-15 00:26:49 +02:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
if (priv->cancelled)
|
2013-06-07 15:18:46 +02:00
|
|
|
@@ -620,7 +622,9 @@
|
2013-05-15 00:26:49 +02:00
|
|
|
while (priv->cancelled_running)
|
|
|
|
{
|
|
|
|
priv->cancelled_running_waiting = TRUE;
|
|
|
|
+#if defined(G_THREADS_ENABLED)
|
2013-06-07 15:18:46 +02:00
|
|
|
g_cond_wait (&cancellable_cond, &cancellable_mutex);
|
2013-05-15 00:26:49 +02:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
g_signal_handler_disconnect (cancellable, handler_id);
|