summaryrefslogtreecommitdiff
path: root/multimedia/mjpegtools/patches/patch-ac
blob: 34cdb7110b65040d9fb7a419dd12937cb72dbca8 (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
$NetBSD: patch-ac,v 1.1.1.1 2004/01/26 12:44:06 jmmv Exp $

--- lavtools/audiolib.c.orig	Mon Dec  8 13:28:32 2003
+++ lavtools/audiolib.c	Sun Jan 25 15:47:33 2004
@@ -665,7 +665,9 @@
    const char *audio_dev_name;
 
 #ifndef FORK_NOT_THREAD
+#if !defined(__NetBSD__) || __NetBSD_Version__ >= 106130000	/* 1.6M */
    struct sched_param schedparam;
+#endif
    sigset_t blocked_signals;
 
    /* Set the capture thread in a reasonable state - cancellation enabled
@@ -862,7 +864,8 @@
          memset(buf+nbset*info.fragsize,0,info.fragsize);
    }
 
-#ifndef FORK_NOT_THREAD
+#if !defined(FORK_NOT_THREAD) && \
+    (!defined(__NetBSD__) || __NetBSD_Version__ >= 106130000)	/* 1.6M */
    /* Now we're ready to go move to Real-time scheduling... */
    schedparam.sched_priority = 1;