aboutsummaryrefslogtreecommitdiff
path: root/system/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/net')
-rw-r--r--system/include/net/arpa/inet.h2
-rw-r--r--system/include/net/netdb.h9
-rw-r--r--system/include/net/netinet/in.h2
3 files changed, 13 insertions, 0 deletions
diff --git a/system/include/net/arpa/inet.h b/system/include/net/arpa/inet.h
index 76ad8b5f..af7845fd 100644
--- a/system/include/net/arpa/inet.h
+++ b/system/include/net/arpa/inet.h
@@ -1,5 +1,7 @@
/* */
+#include <stdint.h>
+
uint32_t ntohl(uint32_t netlong);
uint16_t ntohs(uint16_t netshort);
diff --git a/system/include/net/netdb.h b/system/include/net/netdb.h
index 3b6f3389..ee33be5f 100644
--- a/system/include/net/netdb.h
+++ b/system/include/net/netdb.h
@@ -16,3 +16,12 @@ extern void freeaddrinfo(struct addrinfo *ai);
extern int getnameinfo (struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, unsigned int flags);
const char *gai_strerror(int ecode);
+struct hostent
+{
+ char *h_name;
+ char **h_aliases;
+ int h_addrtype;
+ int h_length;
+ char **h_addr_list;
+};
+
diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h
index 0def3127..7ac40c03 100644
--- a/system/include/net/netinet/in.h
+++ b/system/include/net/netinet/in.h
@@ -1,6 +1,8 @@
#define INET_ADDRSTRLEN 16
+#define INADDR_ANY 0
+
struct in_addr {
unsigned long s_addr;
};