X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-poll.h;h=bedef4c8863d07e38382bc92b52feb5a87392bf0;hb=f392080f211ca2acc53f5cb1f616fd6a7c9699c9;hp=ffbe4d88c6bae7d96636e233b3bce8800beb7b8c;hpb=b6b13e72e91d5b529a6306ce53bda685932c77db;p=mono.git diff --git a/mono/utils/mono-poll.h b/mono/utils/mono-poll.h index ffbe4d88c6b..bedef4c8863 100644 --- a/mono/utils/mono-poll.h +++ b/mono/utils/mono-poll.h @@ -1,13 +1,23 @@ #ifndef MONO_POLL_H #define MONO_POLL_H +#include + #include +#ifdef HAVE_SYS_TIME_H #include +#endif #include +#ifdef HAVE_UNISTD_H #include +#endif #ifdef HAVE_POLL +#ifdef HAVE_POLL_H +#include +#elif defined(HAVE_SYS_POLL_H) #include +#endif #define MONO_POLLIN POLLIN #define MONO_POLLPRI POLLPRI @@ -20,7 +30,7 @@ typedef struct pollfd mono_pollfd; #else -#ifdef PLATFORM_WIN32 +#ifdef HOST_WIN32 #include #endif #define MONO_POLLIN 1 @@ -38,7 +48,7 @@ typedef struct { #endif -int mono_poll (mono_pollfd *ufds, unsigned int nfds, int timeout); +MONO_API int mono_poll (mono_pollfd *ufds, unsigned int nfds, int timeout); #endif /* MONO_POLL_H */