summaryrefslogtreecommitdiffstats
path: root/lwip/src/api/netdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'lwip/src/api/netdb.c')
-rw-r--r--lwip/src/api/netdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lwip/src/api/netdb.c b/lwip/src/api/netdb.c
index ee78297..6592728 100644
--- a/lwip/src/api/netdb.c
+++ b/lwip/src/api/netdb.c
@@ -58,6 +58,9 @@ struct gethostbyname_r_helper {
/** h_errno is exported in netdb.h for access by applications. */
#if LWIP_DNS_API_DECLARE_H_ERRNO
+#ifdef __rtems__
+#undef h_errno
+#endif
int h_errno;
#endif /* LWIP_DNS_API_DECLARE_H_ERRNO */