Subject: Re: Header placement for source compatibility
To: Jared D. McNeill <jmcneill@invisible.ca>
From: Christoph Hellwig <hch@infradead.org>
List: tech-kern
Date: 01/02/2004 12:11:49
On Wed, Dec 31, 2003 at 11:53:06AM -0400, Jared D. McNeill wrote:
> Hey folks --
>
> I'm working on a video4linux API implementation for NetBSD, and was
> wondering where the best place to drop the userland-visible header.
> Linux installs it as /usr/include/linux/videodev.h, but since we don't
> have a linux subdirectory, I was considering keeping it consistent with
> audio(4), radio(4), midi(4), etc by installing it as
> /usr/include/sys/videoio.h. Unfortunately, this will require v4l
> applications to be patched to include the new header.
>
> Any suggestions? The best I've heard so far was from Perry -- Put it in
> sys/videoio.h, create /usr/include/linux, and make
> /usr/include/linux/videodev.h a symlink to /usr/include/sys/videoio.h
Well, the video4linux application need changes anyway because they are
not supposed to poke at kernel headers in Linux anway. I'd suggest talking
to the video2linux developers for a proper location that will be used
by NetBSD and Linux.