diff options
author | David S. Miller <davem@davemloft.net> | 2009-02-02 16:27:44 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-02 16:27:44 -0500 |
commit | 0afd4a21ba7d75e93fa79cf05d7a21774e149c0f (patch) | |
tree | a8b724ce55da03c5c1ea1152a57d7bb6c6b22ee6 /include/linux/Kbuild | |
parent | f9e6934502e46c363100245f137ddf0f4b1cb574 (diff) |
net: Fix userland breakage wrt. linux/if_tunnel.h
Reported by Andrew Walrond <andrew@walrond.org>
Changeset c19e654ddbe3831252f61e76a74d661e1a755530
("gre: Add netlink interface") added an include
of linux/ip.h to linux/if_tunnel.h
We can't really let that get exposed to userspace
because this conflicts with types defined in netinet/ip.h
which userland is almost certainly going to have included
either explicitly or implicitly.
So guard this include with a __KERNEL__ ifdef.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/Kbuild')
-rw-r--r-- | include/linux/Kbuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 12e9a2957caf..6a9bb9753235 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild | |||
@@ -89,7 +89,6 @@ header-y += if_ppp.h | |||
89 | header-y += if_slip.h | 89 | header-y += if_slip.h |
90 | header-y += if_strip.h | 90 | header-y += if_strip.h |
91 | header-y += if_tun.h | 91 | header-y += if_tun.h |
92 | header-y += if_tunnel.h | ||
93 | header-y += in_route.h | 92 | header-y += in_route.h |
94 | header-y += ioctl.h | 93 | header-y += ioctl.h |
95 | header-y += ip6_tunnel.h | 94 | header-y += ip6_tunnel.h |
@@ -235,6 +234,7 @@ unifdef-y += if_phonet.h | |||
235 | unifdef-y += if_pppol2tp.h | 234 | unifdef-y += if_pppol2tp.h |
236 | unifdef-y += if_pppox.h | 235 | unifdef-y += if_pppox.h |
237 | unifdef-y += if_tr.h | 236 | unifdef-y += if_tr.h |
237 | unifdef-y += if_tunnel.h | ||
238 | unifdef-y += if_vlan.h | 238 | unifdef-y += if_vlan.h |
239 | unifdef-y += igmp.h | 239 | unifdef-y += igmp.h |
240 | unifdef-y += inet_diag.h | 240 | unifdef-y += inet_diag.h |