aboutsummaryrefslogtreecommitdiff
path: root/system/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/net')
-rw-r--r--system/include/net/netdb.h40
-rw-r--r--system/include/net/netinet/in.h2
2 files changed, 2 insertions, 40 deletions
diff --git a/system/include/net/netdb.h b/system/include/net/netdb.h
deleted file mode 100644
index 4151ccb5..00000000
--- a/system/include/net/netdb.h
+++ /dev/null
@@ -1,40 +0,0 @@
-
-#ifndef _NET_NETDB_H
-#define _NET_NETDB_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct addrinfo
-{
- int ai_flags;
- int ai_family;
- int ai_socktype;
- int ai_protocol;
- socklen_t ai_addrlen;
- struct sockaddr *ai_addr;
- char *ai_canonname;
- struct addrinfo *ai_next;
-};
-
-extern int getaddrinfo(const char *name, const char *service, const struct addrinfo *req, struct addrinfo **pai);
-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;
-};
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-
diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h
index e32bf3ee..569a56b0 100644
--- a/system/include/net/netinet/in.h
+++ b/system/include/net/netinet/in.h
@@ -6,6 +6,8 @@
extern "C" {
#endif
+#include <arpa/inet.h>
+
enum {
IPPROTO_IP = 0,
#define IPPROTO_IP IPPROTO_IP