aboutsummaryrefslogtreecommitdiff
path: root/system/include/net/arpa/inet.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/net/arpa/inet.h')
-rw-r--r--system/include/net/arpa/inet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/include/net/arpa/inet.h b/system/include/net/arpa/inet.h
index 06d44183..83eaa0fa 100644
--- a/system/include/net/arpa/inet.h
+++ b/system/include/net/arpa/inet.h
@@ -7,6 +7,7 @@ extern "C" {
#endif
#include <stdint.h>
+#include <netdb.h>
uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
@@ -16,6 +17,9 @@ uint16_t ntohs(uint16_t netshort);
int inet_aton(const char *cp, struct in_addr *addr);
char *inet_ntoa(struct in_addr in);
+int inet_pton(int af, const char *src, void *dst);
+const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
+
typedef long in_addr_t;
in_addr_t inet_addr(const char *cp);