#ifndef MONO_POLL_H
#define MONO_POLL_H
+#include <mono/utils/mono-publib.h>
+
#include <config.h>
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#include <sys/types.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_POLL
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#elif defined(HAVE_SYS_POLL_H)
#include <sys/poll.h>
+#endif
#define MONO_POLLIN POLLIN
#define MONO_POLLPRI POLLPRI
#else
-#ifdef PLATFORM_WIN32
+#ifdef HOST_WIN32
#include <windows.h>
#endif
#define MONO_POLLIN 1
#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 */