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:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user