projects
/
dana
/
cg-glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e10edef
)
Fix gcancellable.c build on non-win32
author
Alexander Larsson
<alexl@redhat.com>
Wed, 6 May 2009 11:26:17 +0000
(13:26 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Wed, 6 May 2009 11:26:17 +0000
(13:26 +0200)
I forgot to add #ifdef G_OS_WIN32 in one place, sorry.
gio/gcancellable.c
patch
|
blob
|
history
diff --git
a/gio/gcancellable.c
b/gio/gcancellable.c
index 10e751c57e2e06773fd31001c43103cbf63c2634..39f8778f7a22f2aab7bbcd65c04d9162efc2099d 100644
(file)
--- 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);
}