]> git.sesse.net Git - vlc/commitdiff
vlc_network: vlc_poll is always exported. Don't put it behind an ifdef.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 22:48:35 +0000 (00:48 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 12 Aug 2008 22:57:27 +0000 (00:57 +0200)
include/vlc_network.h
src/network/poll.c

index 8a2b440f83fd3b5ad945cbc7676ac431ff6c3688..e2200d3eea5338c4d6f035dcece2cc026832223a 100644 (file)
@@ -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 */
index d65eccd1cd178bae68ca1b85aeb64f554080f88c..f6f9050effd9df1f7c1ffd4b4f2d0b293295d2de 100644 (file)
@@ -26,6 +26,7 @@
 #endif
 
 #include <vlc_common.h>
+#include <vlc_network.h>
 
 #ifdef HAVE_POLL
 struct pollfd;