Florian Fainelli e71cdf8127 package iproute2 has problems building on recent BSD-derived platforms because some programs to be run on the host use malloc.h in an incompatible way.
package/iproute2/patches/004-darwin_fixes.patch has a fix for Darwin,
however the fix can be made to work on other BSD platforms
by changing the patch as below.

I think a similar approach should work for other BSD-derived platforms,
replacing the
	#ifndef __APPLE__
with
	#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(...)

or perhaps even with just

	#ifdef __linux__

if the set of platforms where malloc.h is ok is small or restricted
to just linux

In any case, the patch is below. (#3869)
Signed-off-by: Luigi Rizzo <rizzo@iet.unipi.it>

SVN-Revision: 12249
2008-08-08 21:49:17 +00:00
..
2008-07-14 10:23:36 +00:00
2008-06-22 18:40:30 +00:00
2008-08-03 14:28:21 +00:00
2008-06-15 11:15:35 +00:00
2007-10-14 04:46:38 +00:00
2008-06-22 18:40:53 +00:00
2007-10-20 20:03:52 +00:00
2008-07-31 02:43:42 +00:00
2008-08-07 13:50:02 +00:00
2008-08-05 18:02:34 +00:00
2008-08-05 22:31:32 +00:00
2008-08-05 22:56:34 +00:00
2008-08-05 23:20:42 +00:00
2008-04-17 17:11:34 +00:00
2007-12-13 21:04:18 +00:00
2008-08-04 11:47:46 +00:00