Skip to content

Commit

Permalink
if_tunnel.h: add missing ams/byteorder.h include
Browse files Browse the repository at this point in the history
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>

Cc: [email protected]
Signed-off-by: Paulius Zaleckas <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
pauliuszaleckas authored and davem330 committed Mar 22, 2010
1 parent 5e016cb commit 9bf35c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/if_tunnel.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _IF_TUNNEL_H_

#include <linux/types.h>
#include <asm/byteorder.h>

#ifdef __KERNEL__
#include <linux/ip.h>
Expand Down

0 comments on commit 9bf35c8

Please sign in to comment.