From 63d447e2a3bb7faf69e0befb123e6ffff0ce47ea Mon Sep 17 00:00:00 2001
From: Rich Felker <dalias@aerifal.cx>
Date: Thu, 21 Jul 2011 22:44:05 -0400
Subject: socket headers macro adjustment - workaround for buggy programs

some program was undefining AF_NETLINK and thereby breaking AF_ROUTE...
---
 arch/i386/bits/socket.h   | 2 +-
 arch/x86_64/bits/socket.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/i386/bits/socket.h b/arch/i386/bits/socket.h
index 9d6722b9..8186ddf1 100644
--- a/arch/i386/bits/socket.h
+++ b/arch/i386/bits/socket.h
@@ -102,7 +102,7 @@ struct linger
 #define AF_SECURITY     PF_SECURITY
 #define AF_KEY          PF_KEY
 #define AF_NETLINK      PF_NETLINK
-#define AF_ROUTE        AF_NETLINK
+#define AF_ROUTE        PF_ROUTE
 #define AF_PACKET       PF_PACKET
 #define AF_ASH          PF_ASH
 #define AF_ECONET       PF_ECONET
diff --git a/arch/x86_64/bits/socket.h b/arch/x86_64/bits/socket.h
index 0e5ee1aa..d92cdef7 100644
--- a/arch/x86_64/bits/socket.h
+++ b/arch/x86_64/bits/socket.h
@@ -102,7 +102,7 @@ struct linger
 #define AF_SECURITY     PF_SECURITY
 #define AF_KEY          PF_KEY
 #define AF_NETLINK      PF_NETLINK
-#define AF_ROUTE        AF_NETLINK
+#define AF_ROUTE        PF_ROUTE
 #define AF_PACKET       PF_PACKET
 #define AF_ASH          PF_ASH
 #define AF_ECONET       PF_ECONET
-- 
cgit v1.2.3-70-g09d2