refresh all package patches in the buildroot using quilt
[openwrt/staging/florian.git] / package / iproute2 / patches / 004-darwin_fixes.patch
1 Index: iproute2-2.6.15-060110/netem/maketable.c
2 ===================================================================
3 --- iproute2-2.6.15-060110.orig/netem/maketable.c 2007-06-04 13:22:33.339786864 +0200
4 +++ iproute2-2.6.15-060110/netem/maketable.c 2007-06-04 13:22:34.476614040 +0200
5 @@ -10,7 +10,9 @@
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <math.h>
9 +#ifndef __APPLE__
10 #include <malloc.h>
11 +#endif
12 #include <string.h>
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 Index: iproute2-2.6.15-060110/netem/normal.c
16 ===================================================================
17 --- iproute2-2.6.15-060110.orig/netem/normal.c 2007-06-04 13:22:33.344786104 +0200
18 +++ iproute2-2.6.15-060110/netem/normal.c 2007-06-04 13:22:34.476614040 +0200
19 @@ -8,8 +8,12 @@
20 #include <string.h>
21 #include <limits.h>
22
23 +#ifndef __APPLE__
24 #include <linux/types.h>
25 #include <linux/pkt_sched.h>
26 +#else
27 +#define NETEM_DIST_SCALE 8192
28 +#endif
29
30 #define TABLESIZE 16384
31 #define TABLEFACTOR NETEM_DIST_SCALE
32 Index: iproute2-2.6.15-060110/netem/pareto.c
33 ===================================================================
34 --- iproute2-2.6.15-060110.orig/netem/pareto.c 2007-06-04 13:22:33.349785344 +0200
35 +++ iproute2-2.6.15-060110/netem/pareto.c 2007-06-04 13:22:34.476614040 +0200
36 @@ -7,8 +7,12 @@
37 #include <math.h>
38 #include <limits.h>
39
40 +#ifndef __APPLE__
41 #include <linux/types.h>
42 #include <linux/pkt_sched.h>
43 +#else
44 +#define NETEM_DIST_SCALE 8192
45 +#endif
46
47 static const double a=3.0;
48 #define TABLESIZE 16384
49 Index: iproute2-2.6.15-060110/netem/paretonormal.c
50 ===================================================================
51 --- iproute2-2.6.15-060110.orig/netem/paretonormal.c 2007-06-04 13:22:33.356784280 +0200
52 +++ iproute2-2.6.15-060110/netem/paretonormal.c 2007-06-04 13:22:34.476614040 +0200
53 @@ -15,10 +15,13 @@
54 #include <string.h>
55 #include <math.h>
56 #include <limits.h>
57 +#ifndef __APPLE__
58 #include <malloc.h>
59 -
60 #include <linux/types.h>
61 #include <linux/pkt_sched.h>
62 +#else
63 +#define NETEM_DIST_SCALE 8192
64 +#endif
65
66 #define TABLESIZE 16384
67 #define TABLEFACTOR NETEM_DIST_SCALE