[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kernel-headers as Build-Depends



Herbert Xu <herbert@gondor.apana.org.au> writes:

> Jonathan Dowland <jmtd@compsoc.dur.ac.uk> wrote:
> > On Mon, Aug 11, 2003 at 11:19:44AM -0400, Ben Collins wrote:
> >> 
> >> Userspace applications should not be including kernel headers. So it is
> >> your bug.
> > 
> > I do not believe that this is the case. Many of the kernel headers
> > include code which may be of use to user-space applications,
> > particularly for programs which interface with the kernel or kernel
> > modules. Indeed, the __KERNEL__ and __MODULE__ definitions are used to
> > allow just this.
> 
> Ben is absolutely right.  If you include kernel headers and it
> breaks, it is *your* problem.
> 
> The solution in this case is to include a copy of the said header
> in the package itself.

/usr/include/netinet/ are the proper (user space) header for udp and
tcp and linux/udp.h is the kernel header, right?

MfG
        Goswin



Reply to: