mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 03:04:05 +02:00
Fix gcancellable.c build on non-win32
I forgot to add #ifdef G_OS_WIN32 in one place, sorry.
This commit is contained in:
@@ -486,8 +486,10 @@ g_cancellable_cancel (GCancellable *cancellable)
|
|||||||
cancel = TRUE;
|
cancel = TRUE;
|
||||||
cancellable->cancelled = TRUE;
|
cancellable->cancelled = TRUE;
|
||||||
cancellable->cancelled_running = TRUE;
|
cancellable->cancelled_running = TRUE;
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
if (cancellable->event)
|
if (cancellable->event)
|
||||||
SetEvent(cancellable->event);
|
SetEvent(cancellable->event);
|
||||||
|
#endif
|
||||||
if (cancellable->cancel_pipe[1] != -1)
|
if (cancellable->cancel_pipe[1] != -1)
|
||||||
write (cancellable->cancel_pipe[1], &ch, 1);
|
write (cancellable->cancel_pipe[1], &ch, 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user