]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
sys/socket.h: Define AF_LOCAL
authorCostin Lupu <costin.lupu@cs.pub.ro>
Fri, 1 Nov 2019 11:16:43 +0000 (13:16 +0200)
committerCostin Lupu <costin.lup@gmail.com>
Tue, 5 Nov 2019 13:25:13 +0000 (15:25 +0200)
We use, just like on Linux, the same value as AF_UNIX. Or the other way around.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
include/sys/socket.h

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