diff options
author | jstebbins <[email protected]> | 2009-07-02 20:33:20 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-07-02 20:33:20 +0000 |
commit | b64c11550f393db6ad0c504c37dfce1d7c34cc70 (patch) | |
tree | 3e79a13f428385279b7dbb552e7f07242f4190a9 /libhb/ports.c | |
parent | 7e0203065275983cebe1ad685d14415f2dde7d6e (diff) |
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
Diffstat (limited to 'libhb/ports.c')
-rw-r--r-- | libhb/ports.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |