Fix gcancellable.c build on non-win32

I forgot to add #ifdef G_OS_WIN32 in one place, sorry.
This commit is contained in:
Alexander Larsson 2009-05-06 13:26:17 +02:00
parent e10edefff1
commit b3e4b761f4

View File

@ -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);
}