Define AF_LOCAL in the socket portability layer
authorChristopher Dykes <cdykes@fb.com>
Fri, 20 Jan 2017 18:35:09 +0000 (10:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 20 Jan 2017 18:47:58 +0000 (10:47 -0800)
Summary: It's the exact same as `PF_LOCAL`, and is used interchangibly.

Reviewed By: yfeldblum

Differential Revision: D4439558

fbshipit-source-id: fd1ff813db5349369fc77888dfd854fc36a2a3be

folly/portability/Sockets.h

index 8cf18b1cc176843a8a655c7e48da13ab573632c6..74060df1b8a211dc7f8db76ed69c390b66909803 100755 (executable)
@@ -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