summaryrefslogtreecommitdiff
path: root/toolchain/eglibc/patches/ip_h_bug.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-10-16 20:10:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-10-16 20:10:34 +0200
commit94c0a7374ee0c980a34e134f93dca1d46e7af7bc (patch)
tree134e5415fb5d2ccc613bdab46c97f5fa3df8c730 /toolchain/eglibc/patches/ip_h_bug.patch
parent07c250a84c1cc9ace9ebf00800f2125461a2662b (diff)
parent084c175e59e9ea61c68154ad9982adcd918cbfcf (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: package/freeradius-server/Makefile package/nss/patches/patch-mozilla_security_coreconf_Linux_mk
Diffstat (limited to 'toolchain/eglibc/patches/ip_h_bug.patch')
-rw-r--r--toolchain/eglibc/patches/ip_h_bug.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/eglibc/patches/ip_h_bug.patch b/toolchain/eglibc/patches/ip_h_bug.patch
new file mode 100644
index 000000000..1f6274fac
--- /dev/null
+++ b/toolchain/eglibc/patches/ip_h_bug.patch
@@ -0,0 +1,12 @@
+diff -Nur eglibc-2.12.orig/libc/sysdeps/generic/netinet/ip.h eglibc-2.12/libc/sysdeps/generic/netinet/ip.h
+--- eglibc-2.12.orig/libc/sysdeps/generic/netinet/ip.h 2010-09-28 19:13:14.000000000 +0200
++++ eglibc-2.12/libc/sysdeps/generic/netinet/ip.h 2010-10-10 14:41:32.000000000 +0200
+@@ -194,7 +194,7 @@
+ */
+
+ #define IPTOS_CLASS_MASK 0xe0
+-#define IPTOS_CLASS(class) ((tos) & IPTOS_CLASS_MASK)
++#define IPTOS_CLASS(class) ((class) & IPTOS_CLASS_MASK)
+ #define IPTOS_CLASS_CS0 0x00
+ #define IPTOS_CLASS_CS1 0x20
+ #define IPTOS_CLASS_CS2 0x40