summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-05-16 10:02:38 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-16 14:03:49 +0200
commit4dad585609e1a9a202f55f51c3e4beb44f968290 (patch)
treeca48d6e6909d535d740f11c1cf669172ffd039f4
parentcf41b0ef17506ba5364d790991bc6bb23cf145be (diff)
downloadserenity-4dad585609e1a9a202f55f51c3e4beb44f968290.zip
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.
-rw-r--r--LibC/sys/socket.h2
1 files changed, 2 insertions, 0 deletions
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