summaryrefslogtreecommitdiffstats
path: root/base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch
diff options
context:
space:
mode:
authorsibel <lesibel@free.fr>2010-11-18 07:58:53 +0100
committersibel <lesibel@free.fr>2010-11-18 07:58:53 +0100
commita2c5b8fb27e02645167a14f87820e2f7f5c39a14 (patch)
treec4a5f91e73679092ed5a64a0cae8ed10091ec31d /base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch
parent0e2af9fe43edc84c1e7c3bb4697fdcc61a273406 (diff)
downloadnutyx-extra-a2c5b8fb27e02645167a14f87820e2f7f5c39a14.tar.gz
nutyx-extra-a2c5b8fb27e02645167a14f87820e2f7f5c39a14.tar.bz2
nutyx-extra-a2c5b8fb27e02645167a14f87820e2f7f5c39a14.tar.xz
nutyx-extra-a2c5b8fb27e02645167a14f87820e2f7f5c39a14.zip
glibc maj 2.12.1-1
Diffstat (limited to 'base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch')
-rw-r--r--base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch b/base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch
new file mode 100644
index 000000000..623a6eac0
--- /dev/null
+++ b/base/glibc/glibc-2.12.1-fix-IPTOS_CLASS-definition.patch
@@ -0,0 +1,34 @@
+From 15bac72bac03faeb3b725b1d208c62160f0c3ad7 Mon Sep 17 00:00:00 2001
+From: Ulrich Drepper <drepper@redhat.com>
+Date: Wed, 11 Aug 2010 07:44:03 -0700
+Subject: [PATCH] Fix IPTOS_CLASS definition.
+
+---
+ ChangeLog | 4 ++++
+ NEWS | 4 ++--
+ sysdeps/generic/netinet/ip.h | 5 ++---
+ 3 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/sysdeps/generic/netinet/ip.h b/sysdeps/generic/netinet/ip.h
+index a837b98..4955fee 100644
+--- a/sysdeps/generic/netinet/ip.h
++++ b/sysdeps/generic/netinet/ip.h
+@@ -1,5 +1,4 @@
+-/* Copyright (C) 1991,92,93,95,96,97,98,99,2000,2009 Free Software
+- Foundation, Inc.
++/* Copyright (C) 1991-1993,1995-2000,2009,2010 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+@@ -194,7 +193,7 @@ struct ip_timestamp
+ */
+
+ #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
+--
+1.7.2
+