1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2026-01-06 13:54:51 +03:00

threads: Fixed ssh_pthread_thread_id with mingw.

This commit is contained in:
Andreas Schneider
2010-12-30 00:39:07 +01:00
parent ef91ac4ea0
commit cb48057098

View File

@@ -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 =