$NetBSD: patch-ai,v 1.2 2005/10/13 10:48:01 jmmv Exp $

--- src/xine-engine/audio_out.c.orig	2005-10-08 15:57:49.000000000 +0200
+++ src/xine-engine/audio_out.c
@@ -2103,7 +2103,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,
