]> git.sesse.net Git - vlc/commitdiff
Fix missing prototype warning
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 24 Mar 2009 21:35:43 +0000 (23:35 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 31 Mar 2009 15:22:01 +0000 (18:22 +0300)
I would really prefer to remove vlc_poll() from exports in the long
term.

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)
 {