$NetBSD: patch-ae,v 1.6 2011/07/13 21:21:52 adam Exp $ --- src/ath.h.orig 2011-02-04 19:17:33.000000000 +0000 +++ src/ath.h @@ -98,6 +104,14 @@ struct ath_ops int (*connect) (int s, void *addr, int length); int (*sendmsg) (int s, const void *msg, int flags); int (*recvmsg) (int s, void *msg, int flags); +#elif defined(__INTERIX) + ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, + struct timeval *timeout); + ssize_t (*waitpid) (pid_t pid, int *status, int options); + int (*accept) (int s, struct sockaddr *addr, socklen_t *length_ptr); + int (*connect) (int s, struct sockaddr *addr, socklen_t length); + int (*sendmsg) (int s, const void *msg, int flags); + int (*recvmsg) (int s, void *msg, int flags); #else ssize_t (*select) (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, struct timeval *timeout); @@ -134,6 +148,14 @@ int ath_accept (int s, void *addr, int * int ath_connect (int s, void *addr, int length); int ath_sendmsg (int s, const void *msg, int flags); int ath_recvmsg (int s, void *msg, int flags); +#elif defined(__INTERIX) +ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, + struct timeval *timeout); +ssize_t ath_waitpid (pid_t pid, int *status, int options); +int ath_accept (int s, struct sockaddr *addr, socklen_t *length_ptr); +int ath_connect (int s, struct sockaddr *addr, socklen_t length); +int ath_sendmsg (int s, const void *msg, int flags); +int ath_recvmsg (int s, void *msg, int flags); #else ssize_t ath_select (int nfd, fd_set *rset, fd_set *wset, fd_set *eset, struct timeval *timeout);