summaryrefslogtreecommitdiff
path: root/utils/inet.h
diff options
context:
space:
mode:
authorAshish Gupta <ashmew2@gmail.com>2017-04-13 23:36:26 +0200
committerAshish Gupta <ashmew2@gmail.com>2017-10-25 22:04:54 +0200
commit7fb4c9e101f8477217ce9d818835bab5cc30f484 (patch)
treeb67b07aec1771eec2a602c82ddd53c62e2d6c5e9 /utils/inet.h
parenta618be2a69a347128a4e29c879abf4a913421f52 (diff)
downloadnetsurf-7fb4c9e101f8477217ce9d818835bab5cc30f484.tar.gz
netsurf-7fb4c9e101f8477217ce9d818835bab5cc30f484.tar.bz2
Step 2 : Abuse _TARGET_IS_KOLIBRIOS and build with make TARGET=kolibrios
Diffstat (limited to 'utils/inet.h')
-rw-r--r--utils/inet.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/inet.h b/utils/inet.h
index da1798432..1d2263fb8 100644
--- a/utils/inet.h
+++ b/utils/inet.h
@@ -33,6 +33,18 @@
#include "utils/config.h"
+#ifdef _TARGET_IS_KOLIBRIOS
+
+#include <sys/select.h>
+
+/* Internet address. */
+struct in_addr {
+ uint32_t s_addr; /* address in network byte order */
+};
+
+extern int AF_INET;
+
+#else
#ifdef HAVE_POSIX_INET_HEADERS
#include <sys/socket.h>
@@ -52,6 +64,8 @@
#endif
+#endif
+
#ifndef HAVE_INETATON
int inet_aton(const char *cp, struct in_addr *inp);
#endif