[vlc-devel] commit: Fix missing prototype warning ( Rémi Denis-Courmont )

git version control git at videolan.org
Tue Mar 31 17:44:08 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi.denis-courmont at nokia.com> | Tue Mar 24 23:35:43 2009 +0200| [91ff0ff529a172440ff0d09d206267220d6a2d5b] | committer: Rémi Denis-Courmont 

Fix missing prototype warning

I would really prefer to remove vlc_poll() from exports in the long
term.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91ff0ff529a172440ff0d09d206267220d6a2d5b
---

 src/network/poll.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/network/poll.c b/src/network/poll.c
index 7aa314d..cf9554a 100644
--- a/src/network/poll.c
+++ b/src/network/poll.c
@@ -25,9 +25,12 @@
 # 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)
 {




More information about the vlc-devel mailing list