aboutsummaryrefslogtreecommitdiff
path: root/audio/maplay
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-02-26 22:48:51 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-02-26 22:48:51 +0000
commitb224af0e1c2e130c66e566cb73578a26fd4b3908 (patch)
treecc87b9b3dd9123081e43909537d3d23b0e71afc5 /audio/maplay
parent59057276f439740a1e9e6082fc9737bcdee68fee (diff)
downloadports-b224af0e1c2e130c66e566cb73578a26fd4b3908.tar.gz
ports-b224af0e1c2e130c66e566cb73578a26fd4b3908.zip
Don't do this to freebsd's /dev/audio
Notes
Notes: svn path=/head/; revision=1044
Diffstat (limited to 'audio/maplay')
-rw-r--r--audio/maplay/files/patch-ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/maplay/files/patch-ac b/audio/maplay/files/patch-ac
new file mode 100644
index 000000000000..3a6e29c92ce1
--- /dev/null
+++ b/audio/maplay/files/patch-ac
@@ -0,0 +1,22 @@
+*** obuffer.cc.orig Thu Jun 23 05:14:36 1994
+--- obuffer.cc Tue Feb 14 04:17:17 1995
+***************
+*** 537,542 ****
+--- 537,543 ----
+ }
+
+ // turn NDELAY mode off:
++ #ifndef __FreeBSD__ /* Our /dev/audio doesn't like non-blocking I/O */
+ int flags;
+ if ((flags = fcntl (fd, F_GETFL, 0)) < 0)
+ {
+***************
+*** 549,554 ****
+--- 550,556 ----
+ perror ("fcntl F_SETFL on /dev/audio failed");
+ exit (1);
+ }
++ #endif
+ return fd;
+ }
+