]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
sys/socket.h: Add AF_UNIX and SCM_RIGHTS definitions
authorMihai Pogonaru <pogonarumihai@gmail.com>
Tue, 29 Oct 2019 20:30:35 +0000 (22:30 +0200)
committerCostin Lupu <costin.lup@gmail.com>
Tue, 29 Oct 2019 20:32:50 +0000 (22:32 +0200)
Signed-off-by: Mihai Pogonaru <pogonarumihai@gmail.com>
Reviewed-by: Costin Lupu <costin.lupu@cs.pub.ro>
include/sys/socket.h

index 991ae3ec14bf3be9a89f747b86b2b3413bf0111a..e691b7949760a1607492350042ae70af2655e7a5 100644 (file)
 #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);