Re: linux/time.h annoyance

From: Ronald Bultje
Date: Thu Sep 25 2003 - 05:17:13 EST


On Thu, 2003-09-25 at 11:54, Christoph Hellwig wrote:
> On Thu, Sep 25, 2003 at 11:48:01AM +0200, Ronald Bultje wrote:
> > Hi,
> >
> > I'm annoyed by something in linux/time.h. The issue is as follows:
> >
> > -
> > #include <sys/time.h>
> > #include <linux/time.h>
> > int main () { return 0; }
>
> So don't include it. Userspace should use <sys/time.h>, not kernel
> headers.

linux/videodev2.h includes linux/time.h. And I need linux/videodev2.h in
my application, there is no sys/ equivalent. I expect there's more of
such cases.

I also explained this in my first email. ;).

Ronald

--
Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
Linux Video/Multimedia developer

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/