From 4dad585609e1a9a202f55f51c3e4beb44f968290 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Thu, 16 May 2019 10:02:38 +0200 Subject: [PATCH] LibC: Allow {AF,PF}_UNIX as well as {AF,PF}_LOCAL Seems that these are equivilent. POSIX specifies _LOCAL, but a lot of software uses _UNIX. --- LibC/sys/socket.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LibC/sys/socket.h b/LibC/sys/socket.h index d4efad7ac2..a1b8b0d4b8 100644 --- a/LibC/sys/socket.h +++ b/LibC/sys/socket.h @@ -9,8 +9,10 @@ __BEGIN_DECLS #define AF_MASK 0xff #define AF_UNSPEC 0 #define AF_LOCAL 1 +#define AF_UNIX AF_LOCAL #define AF_INET 2 #define PF_LOCAL AF_LOCAL +#define PF_UNIX PF_LOCAL #define PF_INET AF_INET #define SOCK_TYPE_MASK 0xff