diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/threads/pthread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/threads/pthread.c b/src/threads/pthread.c index fdfd27d0..72c8ddce 100644 --- a/src/threads/pthread.c +++ b/src/threads/pthread.c @@ -75,7 +75,11 @@ static int ssh_pthread_mutex_unlock (void **lock){ } static unsigned long ssh_pthread_thread_id (void){ - return (unsigned long) pthread_self(); +#if _WIN32 + return (unsigned long) pthread_self().p; +#else + return (unsigned long) pthread_self(); +#endif } static struct ssh_threads_callbacks_struct ssh_threads_pthread = |