diff options
Diffstat (limited to 'utils/inet.h')
-rw-r--r-- | utils/inet.h | 14 |
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 |