$NetBSD: patch-af,v 1.3 2008/10/14 11:33:13 adam Exp $ --- src/ath.c.orig 2008-09-03 12:04:42.000000000 +0200 +++ src/ath.c @@ -24,11 +24,6 @@ #include /* Right: We need to use assert and not gcry_assert. */ #include -#ifdef HAVE_SYS_SELECT_H -# include -#else -# include -#endif #include #ifndef _WIN32 #include @@ -309,7 +304,7 @@ ath_connect (int s, struct sockaddr *add int -#ifdef _WIN32 +#if defined(_WIN32) || defined(__INTERIX) ath_sendmsg (int s, const void *msg, int flags) #else ath_sendmsg (int s, const struct msghdr *msg, int flags) @@ -318,7 +313,7 @@ ath_sendmsg (int s, const struct msghdr if (ops_set && ops.sendmsg) return (*ops.sendmsg) (s, msg, flags); else -#ifdef _WIN32 +#if defined(_WIN32) || defined(__INTERIX) return -1; #else return sendmsg (s, msg, flags); @@ -327,7 +322,7 @@ ath_sendmsg (int s, const struct msghdr int -#ifdef _WIN32 +#if defined(_WIN32) || defined(__INTERIX) ath_recvmsg (int s, void *msg, int flags) #else ath_recvmsg (int s, struct msghdr *msg, int flags) @@ -336,7 +331,7 @@ ath_recvmsg (int s, struct msghdr *msg, if (ops_set && ops.recvmsg) return (*ops.recvmsg) (s, msg, flags); else -#ifdef _WIN32 +#if defined(_WIN32) || defined(__INTERIX) return -1; #else return recvmsg (s, msg, flags);