improve handling of 11a/b/g mode setting. redirect iwconfig channel errors to /dev...
[openwrt.git] / package / iproute2 / patches / 004-darwin_fixes.patch
1 diff -urN iproute2-2.6.15-060110/netem/maketable.c iproute2-2.6.15-060110.new/netem/maketable.c
2 --- iproute2-2.6.15-060110/netem/maketable.c    2005-02-09 23:05:41.000000000 +0100
3 +++ iproute2-2.6.15-060110.new/netem/maketable.c        2007-04-08 22:40:21.000000000 +0200
4 @@ -10,7 +10,9 @@
5  #include <stdio.h>
6  #include <stdlib.h>
7  #include <math.h>
8 +#ifndef __APPLE__
9  #include <malloc.h>
10 +#endif
11  #include <string.h>
12  #include <sys/types.h>
13  #include <sys/stat.h>
14 diff -urN iproute2-2.6.15-060110/netem/normal.c iproute2-2.6.15-060110.new/netem/normal.c
15 --- iproute2-2.6.15-060110/netem/normal.c       2005-03-30 20:11:49.000000000 +0200
16 +++ iproute2-2.6.15-060110.new/netem/normal.c   2007-04-08 22:47:26.000000000 +0200
17 @@ -8,8 +8,12 @@
18  #include <string.h>
19  #include <limits.h>
20  
21 +#ifndef __APPLE__
22  #include <linux/types.h>
23  #include <linux/pkt_sched.h>
24 +#else
25 +#define NETEM_DIST_SCALE        8192
26 +#endif
27  
28  #define TABLESIZE 16384
29  #define TABLEFACTOR NETEM_DIST_SCALE
30 diff -urN iproute2-2.6.15-060110/netem/pareto.c iproute2-2.6.15-060110.new/netem/pareto.c
31 --- iproute2-2.6.15-060110/netem/pareto.c       2005-02-09 23:05:41.000000000 +0100
32 +++ iproute2-2.6.15-060110.new/netem/pareto.c   2007-04-08 22:48:36.000000000 +0200
33 @@ -7,8 +7,12 @@
34  #include <math.h>
35  #include <limits.h>
36  
37 +#ifndef __APPLE__
38  #include <linux/types.h>
39  #include <linux/pkt_sched.h>
40 +#else
41 +#define NETEM_DIST_SCALE        8192
42 +#endif
43  
44  static const double a=3.0;
45  #define TABLESIZE      16384
46 diff -urN iproute2-2.6.15-060110/netem/paretonormal.c iproute2-2.6.15-060110.new/netem/paretonormal.c
47 --- iproute2-2.6.15-060110/netem/paretonormal.c 2005-08-08 22:24:41.000000000 +0200
48 +++ iproute2-2.6.15-060110.new/netem/paretonormal.c     2007-04-08 22:49:56.000000000 +0200
49 @@ -15,10 +15,13 @@
50  #include <string.h>
51  #include <math.h>
52  #include <limits.h>
53 +#ifndef __APPLE__
54  #include <malloc.h>
55 -
56  #include <linux/types.h>
57  #include <linux/pkt_sched.h>
58 +#else
59 +#define NETEM_DIST_SCALE        8192
60 +#endif
61  
62  #define TABLESIZE      16384
63  #define TABLEFACTOR    NETEM_DIST_SCALE