a3d943580b
- regen patches while here
22 lines
785 B
Plaintext
22 lines
785 B
Plaintext
$OpenBSD: patch-daapd_cc,v 1.2 2009/06/03 16:32:54 ajacoutot Exp $
|
|
--- daapd.cc.orig Sun Mar 5 14:39:37 2006
|
|
+++ daapd.cc Tue Jun 2 16:20:11 2009
|
|
@@ -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) && !defined(__OpenBSD__)
|
|
|
|
/* set the scheduling algorithm PROCESS or SYSTEM */
|
|
if (pthread_attr_setscope( &attr, PTHREAD_SCOPE_PROCESS ) != 0)
|