int revents;
};
- VLC_EXPORT (int, poll, (struct pollfd *fds, unsigned nfds, int timeout));
+VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout));
+# define poll(a, b, c) vlc_poll(a, b, c)
#endif
#ifdef WIN32
#include <vlc_common.h>
-#ifndef HAVE_POLL
+#ifdef HAVE_POLL
+struct pollfd;
+
+int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
+{
+ return poll (fds, nfds, timeout);
+}
+#else /* !HAVE_POLL */
#include <string.h>
#include <stdlib.h>
#include <vlc_network.h>
-int poll (struct pollfd *fds, unsigned nfds, int timeout)
+int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
{
fd_set rdset, wrset, exset;
struct timeval tv = { 0, 0 };