From: Pierre d'Herbemont Date: Tue, 12 Aug 2008 22:48:35 +0000 (+0200) Subject: vlc_network: vlc_poll is always exported. Don't put it behind an ifdef. X-Git-Tag: 0.9.0~406 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=909417ea2806f2c4690bbf291450467f3b925de3;p=vlc vlc_network: vlc_poll is always exported. Don't put it behind an ifdef. --- diff --git a/include/vlc_network.h b/include/vlc_network.h index 8a2b440f83..e2200d3eea 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -180,10 +180,11 @@ struct pollfd int events; int revents; }; - -VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout)); # define poll(a, b, c) vlc_poll(a, b, c) #endif +struct pollfd; +VLC_EXPORT (int, vlc_poll, (struct pollfd *fds, unsigned nfds, int timeout)); + #ifdef WIN32 /* Microsoft: same semantic, same value, different name... go figure */ diff --git a/src/network/poll.c b/src/network/poll.c index d65eccd1cd..f6f9050eff 100644 --- a/src/network/poll.c +++ b/src/network/poll.c @@ -26,6 +26,7 @@ #endif #include +#include #ifdef HAVE_POLL struct pollfd;