[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/LWIP PATCH] sys/socket.h: Define AF_LOCAL


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 1 Nov 2019 13:16:43 +0200
  • Cc: felipe.huici@xxxxxxxxx
  • Delivery-date: Fri, 01 Nov 2019 11:16:55 +0000
  • Ironport-sdr: dZXcYf+YvflW+2wShKXJaBtI5kixep11xLLXZKwZ6PzmkYQZO4jq52HNCOYISUM1P5G9KMO7L5 A8KP/x+uyqcQ==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

We use, just like on Linux, the same value as AF_UNIX. Or the other way around.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 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.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.