X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fio-layer%2Fsocket-wrappers.h;h=b6700f3348d6f84bde56caa798275ab59250c4cf;hb=490468131f374120e12924ac31556ab262c280b6;hp=3592da609f7c16ddf90b8faebf9c91e2e0d22784;hpb=dbf19eb41dbd299c4c33d4de35ffe3cf6c669832;p=mono.git diff --git a/mono/io-layer/socket-wrappers.h b/mono/io-layer/socket-wrappers.h index 3592da609f7..b6700f3348d 100644 --- a/mono/io-layer/socket-wrappers.h +++ b/mono/io-layer/socket-wrappers.h @@ -6,12 +6,21 @@ */ #include +#ifdef HAVE_SYS_SELECT_H +# include +#endif +#ifdef HAVE_SYS_TIME_H +# include +#endif +#ifdef HAVE_SYS_SOCKET_H +# include +#endif #ifndef HAVE_SOCKLEN_T #define socklen_t int #endif -#ifdef PLATFORM_WIN32 +#ifdef HOST_WIN32 #define _wapi_accept accept #define _wapi_bind bind #define _wapi_connect connect @@ -68,12 +77,15 @@ extern int _wapi_shutdown(guint32 handle, int how); extern guint32 _wapi_socket(int domain, int type, int protocol, void *unused, guint32 unused2, guint32 flags); extern struct hostent *_wapi_gethostbyname(const char *hostname); + +#ifdef HAVE_SYS_SELECT_H extern int _wapi_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout); extern void _wapi_FD_CLR(guint32 handle, fd_set *set); extern int _wapi_FD_ISSET(guint32 handle, fd_set *set); extern void _wapi_FD_SET(guint32 handle, fd_set *set); +#endif -#endif /* PLATFORM_WIN32 */ +#endif /* HOST_WIN32 */