[glib] Fix gcancellable.c build on non-win32



commit b3e4b761f465a8cb0948bd6381ad832a0a47436a
Author: Alexander Larsson <alexl redhat com>
Date:   Wed May 6 13:26:17 2009 +0200

    Fix gcancellable.c build on non-win32
    
    I forgot to add #ifdef G_OS_WIN32 in one place, sorry.
---
 gio/gcancellable.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gio/gcancellable.c b/gio/gcancellable.c
index 10e751c..39f8778 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);
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]