OSDN Git Service

libhb: fix regression introduced in svn 2620
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 2 Jul 2009 20:33:20 +0000 (20:33 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 2 Jul 2009 20:33:20 +0000 (20:33 +0000)
cygwin pthreads is more like the *nix's

git-svn-id: svn://localhost/HandBrake/trunk@2656 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/ports.c

index d623288..6c69606 100644 (file)
@@ -270,7 +270,9 @@ struct hb_thread_s
 static uint64_t hb_thread_to_integer( const hb_thread_t* t )
 {
 #if defined( USE_PTHREAD )
-    #if defined( _WIN32 ) || defined( __MINGW32__ )
+    #if defined( SYS_CYGWIN )
+        return (uint64_t)t->thread;
+    #elif defined( _WIN32 ) || defined( __MINGW32__ )
         return (uint64_t)(ptrdiff_t)t->thread.p;
     #elif defined( SYS_DARWIN )
         return (unsigned long)t->thread;