[vlc-devel] commit: Poll: cleanup #includes ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Jan 18 16:01:35 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jan 18 16:40:17 2009 +0200| [700b2282419f340a99c89ee4ec7bac715522d516] | committer: Rémi Denis-Courmont 

Poll: cleanup #includes

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

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

diff --git a/src/network/poll.c b/src/network/poll.c
index f6f9050..dc1482c 100644
--- a/src/network/poll.c
+++ b/src/network/poll.c
@@ -25,10 +25,9 @@
 # include "config.h"
 #endif
 
-#include <vlc_common.h>
-#include <vlc_network.h>
-
 #ifdef HAVE_POLL
+#include <stdlib.h>
+
 struct pollfd;
 
 int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
@@ -37,6 +36,8 @@ int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
     abort ();
 }
 #else /* !HAVE_POLL */
+
+#include <vlc_common.h>
 #include <string.h>
 #include <stdlib.h>
 #include <vlc_network.h>




More information about the vlc-devel mailing list