Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libossaudio/soundcard.h,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libossaudio/soundcard.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.19 retrieving revision 1.19.4.1 diff -u -p -r1.19 -r1.19.4.1 --- src/lib/libossaudio/soundcard.h 2011/09/06 01:20:18 1.19 +++ src/lib/libossaudio/soundcard.h 2012/05/07 16:55:33 1.19.4.1 @@ -1,4 +1,4 @@ -/* $NetBSD: soundcard.h,v 1.19 2011/09/06 01:20:18 jmcneill Exp $ */ +/* $NetBSD: soundcard.h,v 1.19.4.1 2012/05/07 16:55:33 riz Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -291,24 +291,18 @@ typedef struct buffmem_desc { int size; } buffmem_desc; -#if 0 -/* This is what we'd like to have, but it causes prototype conflicts. */ #define ioctl _oss_ioctl -#else /* - * XXX force inclusion of before we redefine - * ioctl() to avoid a prototype conflict. - * Its multiple inclusion protection will keep this from - * happening if it is pulled in later. + * If we already included , then we define our own prototype, + * else we depend on to do it for us. We do it this way, so + * that we don't define the prototype twice. */ +#ifndef _SYS_IOCTL_H_ #include -#define ioctl(x,y,z) _oss_ioctl(x,y,z) -#endif - -#include - +#else __BEGIN_DECLS -int _oss_ioctl(int fd, unsigned long com, void *argp); +int _oss_ioctl(int, unsigned long, ...); __END_DECLS +#endif #endif /* !_SOUNDCARD_H_ */