$NetBSD: patch-ay,v 1.1 2000/02/03 16:01:16 abs Exp $ --- sndserv/linux.c.orig Sun Jan 26 07:45:01 1997 +++ sndserv/linux.c Thu Feb 3 01:34:05 2000 @@ -39,11 +39,14 @@ #include #include #include +#include -#include +#include #include "soundsrv.h" +#define SOUND_DEV "/dev/sound" + int audio_fd; void @@ -76,9 +79,12 @@ int i; - audio_fd = open("/dev/dsp", O_WRONLY); + audio_fd = open(SOUND_DEV, O_WRONLY); if (audio_fd<0) - fprintf(stderr, "Could not open /dev/dsp\n"); + { + perror("sndserv: Could not open "SOUND_DEV); + exit(-1); + } i = 11 | (2<<16);