$OpenBSD: patch-src_sound_bsd_sound_bsd_c,v 1.1 2003/02/04 07:57:53 espie Exp $
--- src/sound/bsd/sound_bsd.c.orig	Fri Jun 22 16:45:04 2001
+++ src/sound/bsd/sound_bsd.c	Tue Jan 21 04:00:59 2003
@@ -21,7 +21,7 @@
 #include <sys/ioctl.h>
 #include <sys/audioio.h>
 
-#include "typedef.h"
+#include "portdefs.h"
 #include "sound.h"
 
 static int bsd_init_sound (SINT16 *);
@@ -66,7 +66,7 @@ static int bsd_init_sound (SINT16 *b)
 	buffer = b;
 
 	if ((audio_fd = open ("/dev/audio", O_WRONLY)) < 0)
-		return err_Unk;
+		return -1;
 
 	AUDIO_INITINFO (&ainfo);
 	ainfo.play.sample_rate = 22050;
@@ -76,7 +76,7 @@ static int bsd_init_sound (SINT16 *b)
 	ainfo.play.buffer_size = 16384;
 
 	if (ioctl (audio_fd, AUDIO_SETINFO, &ainfo) == -1)
-		return err_Unk;
+		return -1;
 
 	report ("BSD sound driver written by claudio@helllabs.org.\n");
 
@@ -85,7 +85,7 @@ static int bsd_init_sound (SINT16 *b)
 	pthread_create (&thread, NULL, sound_thread, NULL);
 	pthread_detach (thread);
 
-	return err_OK;
+	return 0;
 }
 
 
