Pull in <string.h> if !_KERNEL, otherwise gcc4 complains about no

prototype for memset(3) (in AUDIO_INITINFO()).
This commit is contained in:
scw 2006-06-18 20:45:09 +00:00
parent 3b9b5a75bb
commit 301e60300b
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: audioio.h,v 1.30 2006/03/28 21:12:04 kleink Exp $ */
/* $NetBSD: audioio.h,v 1.31 2006/06/18 20:45:09 scw Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -40,6 +40,10 @@
#include <sys/types.h>
#include <sys/ioccom.h>
#ifndef _KERNEL
#include <string.h> /* Required for memset(3) prototype (AUDIO_INITINFO) */
#endif /* _KERNEL */
/*
* Audio device
*/