summaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2005-02-10 18:31:18 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2005-02-10 18:31:18 +0000
commitdd79ac48dfcfe1b1b0e2e7f8e96aaaebf11f1814 (patch)
treeafa133f3684fd6c3b28f3c82cc60e60c2c8eaa0c /ip
parent750aaf6672e62450dea98fb479d29fd723585cf2 (diff)
Workaround for kernel/user htons confusion.
(Logical change 1.144)
Diffstat (limited to 'ip')
-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"