Index: libhb/ports.c =================================================================== --- libhb/ports.c (revision 1817) +++ libhb/ports.c (working copy) @@ -409,10 +409,12 @@ #if defined( SYS_BEOS ) l->sem = create_sem( 1, "sem" ); #elif USE_PTHREAD +#if defined( SYS_CYGWIN ) pthread_mutexattr_t mta; pthread_mutexattr_init(&mta); pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_NORMAL); +#endif pthread_mutex_init( &l->mutex, &mta ); //#elif defined( SYS_CYGWIN )