summaryrefslogtreecommitdiff
path: root/package/iproute2/patches/patch-netem_normal_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-02-10 09:34:53 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-02-10 09:34:53 +0100
commit0652f944af3e1fc3d7482380f9c9a8aabc334db3 (patch)
tree60fc84bdd4676123c74460fac580f99cc4350506 /package/iproute2/patches/patch-netem_normal_c
parenta68281352a504b2930d25c9cebd072770ca37ad7 (diff)
fix cross-compile on Darwin
Diffstat (limited to 'package/iproute2/patches/patch-netem_normal_c')
-rw-r--r--package/iproute2/patches/patch-netem_normal_c13
1 files changed, 8 insertions, 5 deletions
diff --git a/package/iproute2/patches/patch-netem_normal_c b/package/iproute2/patches/patch-netem_normal_c
index 719899301..3eada6d03 100644
--- a/package/iproute2/patches/patch-netem_normal_c
+++ b/package/iproute2/patches/patch-netem_normal_c
@@ -1,10 +1,13 @@
---- iproute2-2.6.29-1.orig/netem/normal.c 2009-03-24 23:40:54.000000000 +0100
-+++ iproute2-2.6.29-1/netem/normal.c 2009-12-11 16:35:38.000000000 +0100
-@@ -8,7 +8,6 @@
+--- iproute2-3.12.0.orig/netem/normal.c 2013-11-23 02:10:33.000000000 +0100
++++ iproute2-3.12.0/netem/normal.c 2014-02-09 11:40:30.000000000 +0100
+@@ -8,9 +8,7 @@
#include <string.h>
#include <limits.h>
-#include <linux/types.h>
- #include <linux/pkt_sched.h>
-
+-#include <linux/pkt_sched.h>
+-
++#define NETEM_DIST_SCALE 8192
#define TABLESIZE 16384
+ #define TABLEFACTOR NETEM_DIST_SCALE
+