$NetBSD: patch-aq,v 1.1.1.1 2008/09/09 11:50:18 jmcneill Exp $ --- libucil/ucil_theora.c.orig 2008-09-08 23:57:33.000000000 -0400 +++ libucil/ucil_theora.c 2008-09-08 23:58:33.000000000 -0400 @@ -1026,6 +1026,9 @@ } 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 ) ) @@ -1033,6 +1036,7 @@ TRACE( "SEM_WAIT FAILED\n" ); continue; } +#endif if( buffer_ready && vobj->event_callback ) {