$NetBSD: patch-bc,v 1.3 2000/04/27 14:44:23 mycroft Exp $

--- sun_a.c.orig	Mon May 20 09:09:47 1996
+++ sun_a.c	Thu Apr 27 10:37:28 2000
@@ -28,12 +28,13 @@
 */
 
 #include <unistd.h>
+#include <string.h>
 #include <fcntl.h>
 #include <errno.h>
 
 #include <sys/ioctl.h> 
 
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__NetBSD__)
  #include <sys/audioio.h>
 #else
  #include <sun/audioio.h>
@@ -81,7 +82,7 @@
   
   /* Open the audio device */
 
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__NetBSD__)
   fd=open(dpm.name, O_RDWR );
 #else
   fd=open(dpm.name, O_RDWR | O_NDELAY);
