summaryrefslogtreecommitdiffstats
path: root/ip/iptunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip/iptunnel.c')
-rw-r--r--ip/iptunnel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ip/iptunnel.c b/ip/iptunnel.c
index d8bed0cf..2da3df17 100644
--- a/ip/iptunnel.c
+++ b/ip/iptunnel.c
@@ -29,6 +29,11 @@
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/ip.h>
+
+#ifndef __constant_htons
+#define __constant_htons(x) htons(x)
+#endif
+
#include <linux/if_tunnel.h>
#include "rt_names.h"