Skip to contentSkip to conversation

if_tunnel.h: add missing ams/byteorder.h include

PATCH In review Paulius Zaleckas 2 participants 2 messages Mar 19, 2010 – Mar 22, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 if_tunnel.h: add missing ams/byteorder.h include

When compiling userspace application which includes if_tunnel.h and uses GRE_* defines you will get undefined reference to __cpu_to_be16.

Fix this by adding missing #include <asm/byteorder.h>

---

 include/linux/if_tunnel.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/linux/if_tunnel.h +1 -0
index 1822d63..16b92d0 100644
@@ -2,6 +2,7 @@
 #define _IF_TUNNEL_H_
 
 #include <linux/types.h>
+#include <asm/byteorder.h>
 
 #ifdef __KERNEL__
 #include <linux/ip.h>
maintainer
#1 lore raw

From: Paulius Zaleckas <[email protected]>
Date: Fri, 19 Mar 2010 17:09:26 +0200

Quoted 8 lines

When compiling userspace application which includes if_tunnel.h and uses GRE_* defines you will get undefined reference to __cpu_to_be16.

Fix this by adding missing #include <asm/byteorder.h>

This slipped through the cracks, someone else submitted something similar back in August 2009 it seems.

Thanks for sending this, applied.