diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2014-12-03 13:19:41 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2014-12-03 13:19:41 +0100 |
commit | 11448c08dfb7d10da52a38d469c0aa2888959494 (patch) | |
tree | 63a95d1c4f807305e5dca17116de041858626718 /src/worker.c | |
parent | 39922d9f6fd32497f872dc4605c10b6187addf8b (diff) | |
download | biruda-11448c08dfb7d10da52a38d469c0aa2888959494.tar.gz biruda-11448c08dfb7d10da52a38d469c0aa2888959494.tar.bz2 |
made worker compile on Windows (with glib), doesn't work yet
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c index 9f14dfa..adb3083 100644 --- a/src/worker.c +++ b/src/worker.c @@ -4,6 +4,8 @@ #include "port.h" +#include "pthread.h" + #include <glib.h> #include <stdio.h> @@ -141,9 +143,9 @@ void worker_terminate( worker_t *worker ) direct_glib_execution_worker_data_t *wed = (direct_glib_execution_worker_data_t *)worker->execution_data; #ifndef _WIN32 - kill( wed->pid, SIGTERM ); + (void)kill( wed->pid, SIGTERM ); #else -#error TODO kill on Windows + (void)TerminateProcess( wed->pid, 0 ); #endif worker->state = WORKER_STATE_STOPPED; free( worker->execution_data ); |