From b3e4b761f465a8cb0948bd6381ad832a0a47436a Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 6 May 2009 13:26:17 +0200 Subject: [PATCH] Fix gcancellable.c build on non-win32 I forgot to add #ifdef G_OS_WIN32 in one place, sorry. --- gio/gcancellable.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gcancellable.c b/gio/gcancellable.c index 10e751c5..39f8778f 100644 --- a/gio/gcancellable.c +++ b/gio/gcancellable.c @@ -486,8 +486,10 @@ g_cancellable_cancel (GCancellable *cancellable) cancel = TRUE; cancellable->cancelled = TRUE; cancellable->cancelled_running = TRUE; +#ifdef G_OS_WIN32 if (cancellable->event) SetEvent(cancellable->event); +#endif if (cancellable->cancel_pipe[1] != -1) write (cancellable->cancel_pipe[1], &ch, 1); } -- 2.34.1