Files
MINGW-packages/mingw-w64-libssh/mingw-w64-pthreads.patch
2014-03-17 01:01:29 +04:00

12 lines
385 B
Diff

--- libssh-0.6.3/src/threads/pthread.c.orig 2014-03-16 23:41:28.498600000 +0400
+++ libssh-0.6.3/src/threads/pthread.c 2014-03-16 23:41:53.318200000 +0400
@@ -75,7 +75,7 @@
}
static unsigned long ssh_pthread_thread_id (void){
-#if _WIN32
+#if defined(_WIN32) && !defined(__MINGW32__)
return (unsigned long) pthread_self().p;
#else
return (unsigned long) pthread_self();