summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/thread.c b/common/thread.c
index da7eb21..eb535ab 100644
--- a/common/thread.c
+++ b/common/thread.c
@@ -77,12 +77,12 @@ int thread_alive(THREAD_T thread)
int thread_cancel(THREAD_T thread)
{
#ifdef WIN32
- return 0;
+ return -1;
#else
#ifdef HAVE_PTHREAD_CANCEL
return pthread_cancel(thread);
#else
- return 0;
+ return -1;
#endif
#endif
}