$OpenBSD: patch-daapd_cc,v 1.4 2012/05/17 05:01:35 ajacoutot Exp $ --- daapd.cc.orig Sun Mar 5 08:39:37 2006 +++ daapd.cc Sat May 12 16:55:34 2012 @@ -829,7 +829,7 @@ InitParams *readConfig( InitParams& initParams ) { } } - conf = fopen( "/etc/daapd.conf", "r" ); + conf = fopen( "_SYSCONFDIR_/daapd.conf", "r" ); if( conf != NULL ) { return( parseConfig( conf, initParams ) ); } @@ -989,7 +989,7 @@ void startScanThread ( Database *db, const bool verbos /* get the default attributes */ pthread_attr_init( &attr ); -#if defined( _POSIX_THREAD_PRIORITY_SCHEDULING) +#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING > 0) /* set the scheduling algorithm PROCESS or SYSTEM */ if (pthread_attr_setscope( &attr, PTHREAD_SCOPE_PROCESS ) != 0)