From: Christopher Dykes <cdykes@fb.com>
Date: Fri, 20 Jan 2017 18:35:09 +0000 (-0800)
Subject: Define AF_LOCAL in the socket portability layer
X-Git-Tag: v2017.03.06.00~90
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3866e5d3d8e4ff6e53ef4360d4016fe86a948fdb;p=folly.git

Define AF_LOCAL in the socket portability layer

Summary: It's the exact same as `PF_LOCAL`, and is used interchangibly.

Reviewed By: yfeldblum

Differential Revision: D4439558

fbshipit-source-id: fd1ff813db5349369fc77888dfd854fc36a2a3be
---

diff --git a/folly/portability/Sockets.h b/folly/portability/Sockets.h
index 8cf18b1c..74060df1 100755
--- a/folly/portability/Sockets.h
+++ b/folly/portability/Sockets.h
@@ -60,6 +60,7 @@ struct sockaddr_un {
 
 // These are the same, but PF_LOCAL
 // isn't defined by WinSock.
+#define AF_LOCAL PF_UNIX
 #define PF_LOCAL PF_UNIX
 
 // This isn't defined by Windows, and we need to