diff options
Diffstat (limited to 'lwip/src/api')
-rw-r--r-- | lwip/src/api/netdb.c | 3 | ||||
-rw-r--r-- | lwip/src/api/sockets.c | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lwip/src/api/netdb.c b/lwip/src/api/netdb.c index dfc5203..5217602 100644 --- a/lwip/src/api/netdb.c +++ b/lwip/src/api/netdb.c @@ -45,6 +45,7 @@ #include "lwip/ip_addr.h" #include "lwip/api.h" #include "lwip/dns.h" +#include "lwip/sockets.h" #include <string.h> /* memset */ #include <stdlib.h> /* atoi */ @@ -431,7 +432,7 @@ getnameinfo(const struct sockaddr *sa, socklen_t salen, char *node, /* FIXME: This return just the address value. Try resolving instead. */ if (node != NULL && nodelen > 0) { - if (inet_ntop(af, &sa_in->sin_addr, node, nodelen) == NULL) { + if (lwip_inet_ntop(af, &sa_in->sin_addr, node, nodelen) == NULL) { return EAI_FAIL; } } diff --git a/lwip/src/api/sockets.c b/lwip/src/api/sockets.c index a331206..f47e68e 100644 --- a/lwip/src/api/sockets.c +++ b/lwip/src/api/sockets.c @@ -3274,6 +3274,14 @@ lwip_setsockopt(int s, int level, int optname, const void *optval, socklen_t opt return err ? -1 : 0; } +/* +int +setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen) +{ + return lwip_setsockopt(s, level, optname, optval, optlen); +} +*/ + #if !LWIP_TCPIP_CORE_LOCKING /** lwip_setsockopt_callback: only used without CORE_LOCKING * to get into the tcpip_thread |