From: RĂ©mi Denis-Courmont Date: Tue, 24 Mar 2009 21:35:43 +0000 (+0200) Subject: Fix missing prototype warning X-Git-Tag: 1.0.0-pre2~309 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=91ff0ff529a172440ff0d09d206267220d6a2d5b;p=vlc Fix missing prototype warning I would really prefer to remove vlc_poll() from exports in the long term. --- diff --git a/src/network/poll.c b/src/network/poll.c index 7aa314db39..cf9554a30a 100644 --- a/src/network/poll.c +++ b/src/network/poll.c @@ -25,9 +25,12 @@ # include "config.h" #endif -#ifdef HAVE_POLL +#include #include +#include + +#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 #include -#include -#include int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) {