socket headers macro adjustment - workaround for buggy programs
authorRich Felker <dalias@aerifal.cx>
Fri, 22 Jul 2011 02:44:05 +0000 (22:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 22 Jul 2011 02:44:05 +0000 (22:44 -0400)
some program was undefining AF_NETLINK and thereby breaking AF_ROUTE...

arch/i386/bits/socket.h
arch/x86_64/bits/socket.h

index 9d6722b901d495407777d09b22f7232aa745558b..8186ddf1f3d1d58c81469c490616c3436930f9db 100644 (file)
@@ -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
index 0e5ee1aa26a65da7e5b5eebf0674a8aa67237fcf..d92cdef7fc3f8f9f2fab30ad3992ae7614fa6c87 100644 (file)
@@ -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