summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rtemslwip/common/network_compat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rtemslwip/common/network_compat.c b/rtemslwip/common/network_compat.c
index c072d54..d99204c 100644
--- a/rtemslwip/common/network_compat.c
+++ b/rtemslwip/common/network_compat.c
@@ -58,6 +58,12 @@ uint16_t htons(uint16_t x)
return lwip_htons(x);
}
+#undef gethostbyname
+struct hostent *gethostbyname(const char *name)
+{
+ return lwip_gethostbyname(name);
+}
+
int
getnameinfo(const struct sockaddr *sa, socklen_t salen, char *node,
size_t nodelen, char *service, size_t servicelen, int flags)