* [PATCH 12/12] headers, ppp: Add missing #include to [not found] <1312809302.2591.1139.camel@deadeye> @ 2011-08-08 13:25 ` Ben Hutchings 2011-08-09 7:27 ` David Miller 0 siblings, 1 reply; 3+ messages in thread From: Ben Hutchings @ 2011-08-08 13:25 UTC (permalink / raw) To: David Miller; +Cc: netdev, Paul Mackerras, linux-ppp <linux/if_ppp.h> uses various types defined in <linux/ppp_defs.h>. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> --- include/linux/if_ppp.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/if_ppp.h b/include/linux/if_ppp.h index c9ad383..4d70e16 100644 --- a/include/linux/if_ppp.h +++ b/include/linux/if_ppp.h @@ -35,6 +35,7 @@ #include <linux/types.h> #include <linux/compiler.h> +#include <linux/ppp_defs.h> /* * Packet sizes -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 12/12] headers, ppp: Add missing #include to 2011-08-08 13:25 ` [PATCH 12/12] headers, ppp: Add missing #include to Ben Hutchings @ 2011-08-09 7:27 ` David Miller 2011-08-09 12:40 ` Ben Hutchings 0 siblings, 1 reply; 3+ messages in thread From: David Miller @ 2011-08-09 7:27 UTC (permalink / raw) To: ben; +Cc: netdev, paulus, linux-ppp From: Ben Hutchings <ben@decadent.org.uk> Date: Mon, 08 Aug 2011 14:25:19 +0100 > <linux/if_ppp.h> uses various types defined in <linux/ppp_defs.h>. > > Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Unfortunately there is a "net/if_ppp.h" provided by glibc that includes "net/ppp_defs.h", and all of this is presumably in order to discourage direct use of the kernel headers. Even though net/ppp_defs.h ends up including linux/ppp_defs.h anyways. Whilst I think your efforts are to be commended, we can't start doing or else we'll start breaking the build in various unexpected ways. The SIOCDEVPRIVATE (defined by GLIBC in bits/ioctls.h) case is just one such example. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 12/12] headers, ppp: Add missing #include to 2011-08-09 7:27 ` David Miller @ 2011-08-09 12:40 ` Ben Hutchings 0 siblings, 0 replies; 3+ messages in thread From: Ben Hutchings @ 2011-08-09 12:40 UTC (permalink / raw) To: David Miller; +Cc: netdev, paulus, linux-ppp [-- Attachment #1: Type: text/plain, Size: 1357 bytes --] On Tue, 2011-08-09 at 00:27 -0700, David Miller wrote: > From: Ben Hutchings <ben@decadent.org.uk> > Date: Mon, 08 Aug 2011 14:25:19 +0100 > > > <linux/if_ppp.h> uses various types defined in <linux/ppp_defs.h>. > > > > Signed-off-by: Ben Hutchings <ben@decadent.org.uk> > > Unfortunately there is a "net/if_ppp.h" provided by glibc that > includes "net/ppp_defs.h", and all of this is presumably in order > to discourage direct use of the kernel headers. > > Even though net/ppp_defs.h ends up including linux/ppp_defs.h > anyways. > > Whilst I think your efforts are to be commended, we can't start doing > or else we'll start breaking the build in various unexpected ways. > > The SIOCDEVPRIVATE (defined by GLIBC in bits/ioctls.h) case is just > one such example. I did try to check for these cases, but obviously missed some. I'll re-post the series without these ones. In the longer term I would really like to solve this mess somehow. glibc is obviously duplicating a lot of definitions in different headers (but tends to lag behind a little) and other C libraries may also have to duplicate that work for compatibility. Some kernel headers already *do* include headers such as <linux/if.h> that can conflict with C library headers, sometimes requiring userland to work around the conflict somehow. Ben. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-09 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1312809302.2591.1139.camel@deadeye>
2011-08-08 13:25 ` [PATCH 12/12] headers, ppp: Add missing #include to Ben Hutchings
2011-08-09 7:27 ` David Miller
2011-08-09 12:40 ` Ben Hutchings
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox