From: Costin Lupu Date: Fri, 1 Nov 2019 11:16:43 +0000 (+0200) Subject: sys/socket.h: Define AF_LOCAL X-Git-Tag: RELEASE-0.4~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e5f941b7d68e2bc322a544759ec7d33fd291a166;p=unikraft%2Flibs%2Flwip.git 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 --- 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