$NetBSD: patch-ai,v 1.3 2006/12/08 09:24:26 abs Exp $

--- src/xine-engine/audio_out.c.orig	2006-11-04 23:30:14.000000000 +0000
+++ src/xine-engine/audio_out.c
@@ -2180,7 +2180,9 @@ xine_audio_port_t *_x_ao_new_port (xine_
     this->audio_loop_running = 1;  
     
     pthread_attr_init(&pth_attrs);
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
     pthread_attr_setscope(&pth_attrs, PTHREAD_SCOPE_SYSTEM);
+#endif
 
     this->audio_thread_created = 1;
     if ((err = pthread_create (&this->audio_thread,
