]> git.sesse.net Git - vlc/blobdiff - src/network/poll.c
vlc_poll: no conditional symbols
[vlc] / src / network / poll.c
index 540bc1dac6dff11664c75bee5fef24ed4c44b1e4..2bef3f52564f3cdbcc76c7472452a4f25f95a8f9 100644 (file)
 
 #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 };