Commit 91ff0ff5 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Rémi Denis-Courmont

Fix missing prototype warning

I would really prefer to remove vlc_poll() from exports in the long
term.
parent e9dfc109
...@@ -25,9 +25,12 @@ ...@@ -25,9 +25,12 @@
# include "config.h" # include "config.h"
#endif #endif
#ifdef HAVE_POLL #include <vlc_common.h>
#include <stdlib.h> #include <stdlib.h>
#include <vlc_network.h>
#ifdef HAVE_POLL
struct pollfd; struct pollfd;
int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
...@@ -37,10 +40,7 @@ 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 */ #else /* !HAVE_POLL */
#include <vlc_common.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
#include <vlc_network.h>
int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout) int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment