$NetBSD: patch-aq,v 1.2 2009/01/08 01:08:37 jmcneill Exp $ --- libucil/ucil_theora.c.orig 2008-09-30 12:21:36.000000000 -0400 +++ libucil/ucil_theora.c @@ -1035,6 +1035,9 @@ static void *ucil_theora_worker_thread( } gettimeofday( &ctime, NULL ); +#ifdef __NetBSD__ + sem_wait( &vobj->sema ); +#else abs_timeout.tv_sec = ctime.tv_sec + 1; abs_timeout.tv_nsec = ctime.tv_usec * 1000; if( sem_timedwait( &vobj->sema, &abs_timeout ) ) @@ -1042,6 +1045,7 @@ static void *ucil_theora_worker_thread( TRACE( "SEM_WAIT FAILED\n" ); continue; } +#endif if( buffer_ready && vobj->event_callback ) {