﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1059	IPROUTE2-2.6.9-050209 doesn't compile (undefined reference to `__constant_htons' )	stelgn@…	lfs-book@…	"Compiling errors show with 2.6.10 Kernel and 2.3.4 Glibc

Fix:

--- iproute2-2.6.9-050209/ip/iptunnel.c.orig	2005-03-06 00:22:11.069784441 +0800
+++ iproute2-2.6.9-050209/ip/iptunnel.c	2005-03-06 01:50:29.711234091 +0800
@@ -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"""	defect	closed	normal		Book	6.0	major	invalid		
