git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f8962d
)
Poll: cleanup #includes
author
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 18 Jan 2009 14:40:17 +0000
(16:40 +0200)
committer
Rémi Denis-Courmont
<rdenis@simphalempin.com>
Sun, 18 Jan 2009 15:01:31 +0000
(17:01 +0200)
src/network/poll.c
patch
|
blob
|
history
diff --git
a/src/network/poll.c
b/src/network/poll.c
index
f6f9050
..
dc1482c
100644
(file)
--- a/
src/network/poll.c
+++ b/
src/network/poll.c
@@
-25,10
+25,9
@@
# include "config.h"
#endif
# include "config.h"
#endif
-#include <vlc_common.h>
-#include <vlc_network.h>
-
#ifdef HAVE_POLL
#ifdef HAVE_POLL
+#include <stdlib.h>
+
struct pollfd;
int vlc_poll (struct pollfd *fds, unsigned nfds, int timeout)
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 */
abort ();
}
#else /* !HAVE_POLL */
+
+#include <vlc_common.h>
#include <string.h>
#include <stdlib.h>
#include <vlc_network.h>
#include <string.h>
#include <stdlib.h>
#include <vlc_network.h>