blob: 2db2645dbc2d1333e75f3bc956bddc78f6efc06c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-ag,v 1.1 2005/03/16 15:32:12 rillig Exp $
NetBSD-1.6.2 does not have struct sched_param.
--- src/portaudio/pa_unix.c.orig Sun Jul 11 18:03:57 2004
+++ src/portaudio/pa_unix.c Wed Mar 16 02:58:17 2005
@@ -87,6 +87,8 @@ O- what if input and output of a device
*/
+#include <pkgsrc_fixes.h>
+
#include "pa_unix.h"
typedef void *(*pthread_function_t)(void *);
@@ -411,6 +413,7 @@ static int PaHost_CanaryProc( PaHostSoun
static PaError PaHost_WatchDogProc( PaHostSoundControl *pahsc )
{
+#ifdef HAVE_STRUCT_SCHED_PARAM
struct sched_param schp = { 0 };
int maxPri;
@@ -495,6 +498,7 @@ cleanup:
#ifdef GNUSTEP
GSUnregisterCurrentThread(); /* SB20010904 */
#endif
+#endif
return 0;
}
@@ -574,6 +578,7 @@ static PaError PaHost_BoostPriority( int
{
PaHostSoundControl *pahsc;
PaError result = paNoError;
+#ifdef HAVE_STRUCT_SCHED_PARAM
struct sched_param schp = { 0 };
pahsc = (PaHostSoundControl *) past->past_DeviceData;
@@ -597,6 +602,7 @@ static PaError PaHost_BoostPriority( int
/* We are running at high priority so we should have a watchdog in case audio goes wild. */
result = PaHost_StartWatchDog( pahsc );
}
+#endif
return result;
}
|