summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorrillig <rillig>2005-03-11 21:27:17 +0000
committerrillig <rillig>2005-03-11 21:27:17 +0000
commit8ab543a820acd7d2bc17ab4ee3e2f1d558c4049e (patch)
treee921ea46a32e3aaa2e957024d61ab223386e4864 /audio
parent1a6f3d616b341de67a6d090594d97a77450bb586 (diff)
downloadpkgsrc-8ab543a820acd7d2bc17ab4ee3e2f1d558c4049e.tar.gz
This patch disables the priority scheduling if it is not available.
Needed at least for NetBSD-1.6.2. Approved by wiz.
Diffstat (limited to 'audio')
-rw-r--r--audio/darkice/distinfo3
-rw-r--r--audio/darkice/patches/patch-aa40
2 files changed, 42 insertions, 1 deletions
diff --git a/audio/darkice/distinfo b/audio/darkice/distinfo
index e98d90c0baf..7aafe2ad5be 100644
--- a/audio/darkice/distinfo
+++ b/audio/darkice/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 20:39:44 agc Exp $
+$NetBSD: distinfo,v 1.4 2005/03/11 21:27:17 rillig Exp $
SHA1 (darkice-0.14.tar.gz) = 3c86c1f68ee7b1616911345ede1515652603b34f
RMD160 (darkice-0.14.tar.gz) = 05f712fe8e2bb27dcd33543c4d9cd7cf696fd58e
Size (darkice-0.14.tar.gz) = 337956 bytes
+SHA1 (patch-aa) = 9eba63fbc55e84f72adab2ec4bdd0c8bf97295f2
diff --git a/audio/darkice/patches/patch-aa b/audio/darkice/patches/patch-aa
new file mode 100644
index 00000000000..d1e9319e122
--- /dev/null
+++ b/audio/darkice/patches/patch-aa
@@ -0,0 +1,40 @@
+$NetBSD: patch-aa,v 1.3 2005/03/11 21:27:17 rillig Exp $
+
+This patch disables the priority scheduling if it is not available.
+
+Needed at least for NetBSD-1.6.2.
+
+--- src/DarkIce.cpp.orig Sun Feb 15 13:14:38 2004
++++ src/DarkIce.cpp Fri Mar 11 18:01:41 2005
+@@ -873,6 +873,7 @@ DarkIce :: configFileCast ( const Confi
+ void
+ DarkIce :: setRealTimeScheduling ( void ) throw ( Exception )
+ {
++#ifdef _POSIX_PRIORITY_SCHEDULING
+ uid_t euid;
+
+ euid = geteuid();
+@@ -917,6 +918,7 @@ DarkIce :: setRealTimeScheduling ( void
+ reportEvent( 1,
+ "It is recommended that you run this program as super-user");
+ }
++#endif
+ }
+
+
+@@ -928,6 +930,7 @@ DarkIce :: setRealTimeScheduling ( void
+ void
+ DarkIce :: setOriginalScheduling ( void ) throw ( Exception )
+ {
++#ifdef _POSIX_PRIORITY_SCHEDULING
+ uid_t euid;
+
+ euid = geteuid();
+@@ -947,6 +950,7 @@ DarkIce :: setOriginalScheduling ( void
+
+ reportEvent( 5, "reverted to original scheduling");
+ }
++#endif
+ }
+
+