From e5f941b7d68e2bc322a544759ec7d33fd291a166 Mon Sep 17 00:00:00 2001 From: Costin Lupu Date: Fri, 1 Nov 2019 13:16:43 +0200 Subject: [PATCH] sys/socket.h: Define AF_LOCAL We use, just like on Linux, the same value as AF_UNIX. Or the other way around. Signed-off-by: Costin Lupu Reviewed-by: Stefan Teodorescu --- include/sys/socket.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/sys/socket.h b/include/sys/socket.h index e691b79..f23ad32 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -56,8 +56,12 @@ #define SOMAXCONN 128 #endif +#ifndef AF_LOCAL +#define AF_LOCAL 1 /* Not supported/stub */ +#endif + #ifndef AF_UNIX -#define AF_UNIX 1 /* Not supported/stub */ +#define AF_UNIX AF_LOCAL /* Not supported/stub */ #endif #ifndef SCM_RIGHTS -- 2.39.5