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

[Minios-devel] [UNIKRAFT/LIBLWIP PATCH v2 1/2] Add missing EAI_* macro definitions



Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx>
---
 include/netdb.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/include/netdb.h b/include/netdb.h
index 948a2e7..5bbd354 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -1,3 +1,5 @@
+#ifndef _LWIP_GLUE_NETDB_H_
+#define _LWIP_GLUE_NETDB_H_
 #include <compat/posix/netdb.h>
 
 #if LWIP_DNS && LWIP_SOCKET
@@ -63,7 +65,13 @@ void setprotoent(int stayopen);
 #define EAI_SYSTEM     11
 
 /* Error values for getaddrinfo() not defined by lwip/netdb.h */
-#define EAI_OVERFLOW    205      /* Argument buffer overflow.  */
+#define EAI_BADFLAGS   -1
+#define EAI_AGAIN      -3
+#define EAI_NODATA     -5
+#define EAI_SOCKTYPE   -7
+#define EAI_ADDRFAMILY -9
+#define EAI_SYSTEM     -11
+#define EAI_OVERFLOW   -12
 
 int getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
                char *host, socklen_t hostlen,
@@ -73,4 +81,5 @@ struct servent *getservbyname(const char *name, const char 
*proto);
 struct servent *getservbyport(int port, const char *proto);
 int getservbyport_r(int port, const char *prots, struct servent *se,
                    char *buf, size_t buflen, struct servent **res);
+#endif
 
-- 
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®.