From b64c11550f393db6ad0c504c37dfce1d7c34cc70 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 2 Jul 2009 20:33:20 +0000 Subject: libhb: fix regression introduced in svn 2620 cygwin pthreads is more like the *nix's git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2656 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/ports.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libhb') diff --git a/libhb/ports.c b/libhb/ports.c index d6232884f..6c6960633 100644 --- a/libhb/ports.c +++ b/libhb/ports.c @@ -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; -- cgit v1.2.3