Remove now undeeded _POSIX_THREAD_PRIORITY_SCHEDULING hack.

from Brad
This commit is contained in:
ajacoutot 2012-03-06 11:43:39 +00:00
parent a7915c237a
commit 25d297576c
4 changed files with 6 additions and 28 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.12 2012/01/03 07:03:54 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.13 2012/03/06 11:43:39 ajacoutot Exp $
COMMENT= server for the DAA protocol
DISTNAME= daapd-0.2.4b
REVISION= 2
REVISION= 3
EXTRACT_SUFX= .tgz
CATEGORIES= audio net
MASTER_SITES= ${HOMEPAGE}

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-daapd_cc,v 1.2 2009/06/03 16:32:54 ajacoutot Exp $
$OpenBSD: patch-daapd_cc,v 1.3 2012/03/06 11:43:39 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 ) {
@ -10,12 +10,3 @@ $OpenBSD: patch-daapd_cc,v 1.2 2009/06/03 16:32:54 ajacoutot Exp $
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)

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2011/09/16 09:48:09 espie Exp $
# $OpenBSD: Makefile,v 1.27 2012/03/06 11:43:39 ajacoutot Exp $
# $RuOBSD: Makefile,v 1.4 2002/04/29 11:07:18 grange Exp $
# $NetBSD: Makefile,v 1.1.1.1 2001/12/29 00:22:02 abs Exp $
@ -7,10 +7,9 @@ COMMENT= open source 68k Macintosh emulator
DISTNAME= BasiliskII_src_01052006
REVISION= 0
PKGNAME= BasiliskII-1.0
REVISION= 3
CATEGORIES= emulators
REVISION= 2
HOMEPAGE= http://basilisk.cebix.net/
# GPLv2

View File

@ -1,13 +0,0 @@
$OpenBSD: patch-src_Unix_main_unix_cpp,v 1.2 2010/03/25 08:10:56 jasper Exp $
--- src/Unix/main_unix.cpp.orig Thu Mar 25 08:55:21 2010
+++ src/Unix/main_unix.cpp Thu Mar 25 08:56:01 2010
@@ -981,6 +981,9 @@ static void sigint_handler(...)
void Set_pthread_attr(pthread_attr_t *attr, int priority)
{
pthread_attr_init(attr);
+#ifdef __OpenBSD__
+#undef _POSIX_THREAD_PRIORITY_SCHEDULING
+#endif
#if defined(_POSIX_THREAD_PRIORITY_SCHEDULING)
// Some of these only work for superuser
if (geteuid() == 0) {