upgrade iptables to 1.4.3.2
[openwrt.git] / package / iproute2 / patches / 004-darwin_fixes.patch
1 Index: iproute-2.6.20-070313/netem/maketable.c
2 ===================================================================
3 --- iproute-2.6.20-070313.orig/netem/maketable.c 2007-06-09 13:53:56.000000000 +0100
4 +++ iproute-2.6.20-070313/netem/maketable.c 2007-06-09 13:54:01.000000000 +0100
5 @@ -10,7 +10,9 @@
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <math.h>
9 +#if !defined(__APPLE__) && !defined(__FreeBSD__)
10 #include <malloc.h>
11 +#endif
12 #include <string.h>
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 Index: iproute-2.6.20-070313/netem/normal.c
16 ===================================================================
17 --- iproute-2.6.20-070313.orig/netem/normal.c 2007-06-09 13:53:56.000000000 +0100
18 +++ iproute-2.6.20-070313/netem/normal.c 2007-06-09 13:54:01.000000000 +0100
19 @@ -8,8 +8,12 @@
20 #include <string.h>
21 #include <limits.h>
22
23 +#if !defined(__APPLE__) && !defined(__FreeBSD__)
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: iproute-2.6.20-070313/netem/pareto.c
33 ===================================================================
34 --- iproute-2.6.20-070313.orig/netem/pareto.c 2007-06-09 13:53:56.000000000 +0100
35 +++ iproute-2.6.20-070313/netem/pareto.c 2007-06-09 13:54:01.000000000 +0100
36 @@ -7,8 +7,12 @@
37 #include <math.h>
38 #include <limits.h>
39
40 +#if !defined(__APPLE__) && !defined(__FreeBSD__)
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: iproute-2.6.20-070313/netem/paretonormal.c
50 ===================================================================
51 --- iproute-2.6.20-070313.orig/netem/paretonormal.c 2007-06-09 13:53:56.000000000 +0100
52 +++ iproute-2.6.20-070313/netem/paretonormal.c 2007-06-09 13:54:01.000000000 +0100
53 @@ -15,10 +15,13 @@
54 #include <string.h>
55 #include <math.h>
56 #include <limits.h>
57 +#if !defined(__APPLE__) && !defined(__FreeBSD__)
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
This page took 0.048498 seconds and 5 git commands to generate.