summaryrefslogtreecommitdiff
path: root/audio/mad/patches/patch-ab
blob: c03870bef2bf12287a887bdcfb248d053189510c (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-ab,v 1.1 2001/10/20 14:53:29 wiz Exp $

--- audio_sun.c.orig	Fri Oct 19 00:36:54 2001
+++ audio_sun.c
@@ -32,8 +32,10 @@
 # include <string.h>
 # include <errno.h>
 # include <sys/types.h>
+#ifndef __NetBSD__
 # include <stropts.h>
 # include <sys/conf.h>
+#endif
 
 # include "mad.h"
 # include "audio.h"
@@ -159,7 +161,7 @@
   result = set_pause(1);
 
   if (stop->flush &&
-      ioctl(sfd, I_FLUSH, FLUSHW) == -1 && result == 0) {
+      ioctl(sfd, AUDIO_FLUSH, NULL) == -1 && result == 0) {
     audio_error = ":ioctl(I_FLUSH)";
     result = -1;
   }