Browse Source

socket headers macro adjustment - workaround for buggy programs

some program was undefining AF_NETLINK and thereby breaking AF_ROUTE...
Rich Felker 13 years ago
parent
commit
63d447e2a3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      arch/i386/bits/socket.h
  2. 1 1
      arch/x86_64/bits/socket.h

+ 1 - 1
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

+ 1 - 1
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