From: Mihai Pogonaru Date: Tue, 29 Oct 2019 20:30:35 +0000 (+0200) Subject: sys/socket.h: Add AF_UNIX and SCM_RIGHTS definitions X-Git-Tag: RELEASE-0.4~20 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8ea2162cc6e60e3bbe24ef07a298f35770478a4a;p=unikraft%2Flibs%2Flwip.git sys/socket.h: Add AF_UNIX and SCM_RIGHTS definitions Signed-off-by: Mihai Pogonaru Reviewed-by: Costin Lupu --- diff --git a/include/sys/socket.h b/include/sys/socket.h index 991ae3e..e691b79 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -56,6 +56,14 @@ #define SOMAXCONN 128 #endif +#ifndef AF_UNIX +#define AF_UNIX 1 /* Not supported/stub */ +#endif + +#ifndef SCM_RIGHTS +#define SCM_RIGHTS 1 /* Not supported/stub */ +#endif + int socket(int domain, int type, int protocol); int accept(int s, struct sockaddr *addr, socklen_t *addrlen); int bind(int s, const struct sockaddr *name, socklen_t namelen);