# \[PATCH v4 51/79\] include/uapi/linux/ip6\_tunnel.h: include linux/if.h and linux/in6.h

- Subsystems: THE REST
- Maintainers: Linus Torvalds
- Status: SUPERSEDED (Superseded by v05 posted 2016-08-22)
- Superseded by v05 (posted 2016-08-22).
- Revision v4 (3 revisions archived).
- List: linux-api
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-api/2015/10/4598304/t

## \[PATCH v4 51/79\] include/uapi/linux/ip6\_tunnel.h: include linux/if.h and linux/in6.h

- From: Mikko Rapeli \<hidden\>
- Date: 2015-10-15 06:36:41 
- Message: https://ratatoskr.run/linux-api/2015/10/4598304.md

```text
Fixes userspace compile errors like:

error: ‘IFNAMSIZ’ undeclared here (not in a function)
error: field ‘laddr’ has incomplete type
  struct in6_addr laddr; /* local tunnel end-point address */

Signed-off-by: Mikko Rapeli <redacted>
---
 include/uapi/linux/ip6_tunnel.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/uapi/linux/ip6_tunnel.h b/include/uapi/linux/ip6_tunnel.h
index 48af63c..21cfd62 100644
--- a/include/uapi/linux/ip6_tunnel.h
+++ b/include/uapi/linux/ip6_tunnel.h
@@ -2,6 +2,8 @@
 #define _IP6_TUNNEL_H
 
 #include <linux/types.h>
+#include <linux/if.h>
+#include <linux/in6.h>
 
 #define IPV6_TLV_TNL_ENCAP_LIMIT 4
 #define IPV6_DEFAULT_TNL_ENCAP_LIMIT 4
-- 
2.5.0
```
