git: 9front

Download patch

ref: ca307b695eacf812877d3937d80d9a9e47664339
parent: 77380c3b892400db70a7f7b8aa9070524a69eabd
author: cinap_lenrek <cinap_lenrek@localhost>
date: Mon Aug 1 01:34:46 EDT 2011

doom: open /dev/audio with OWRITE instead of ORDWR

--- a/sys/src/games/doom/i_sound.c
+++ b/sys/src/games/doom/i_sound.c
@@ -131,7 +131,7 @@
 {
 	int i;
 
-	audio_fd = open("/dev/audio", ORDWR);
+	audio_fd = open("/dev/audio", OWRITE);
 	if(audio_fd < 0) 
 		printf("WARN Failed to open /dev/audio, sound disabled\n");
 
--