]> git.sesse.net Git - vlc/blobdiff - src/network/poll.c
Fix missing prototype warning
[vlc] / src / network / poll.c
index 7aa314db393c2aa618a5692899fc2240a783cd4e..cf9554a30ab687c453425985cf52f6a025b24820 100644 (file)
 # include "config.h"
 #endif
 
-#ifdef HAVE_POLL
+#include <vlc_common.h>
 #include <stdlib.h>
+#include <vlc_network.h>
+
 
+#ifdef HAVE_POLL
 struct pollfd;
 
 int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
@@ -37,10 +40,7 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
 }
 #else /* !HAVE_POLL */
 
-#include <vlc_common.h>
 #include <string.h>
-#include <stdlib.h>
-#include <vlc_network.h>
 
 int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
 {