[vlc-commits] xcb/apps: fix #includes

Rémi Denis-Courmont git at videolan.org
Sat Nov 23 20:04:18 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 23 18:49:49 2019 +0200| [c68d5619a76e349d3c3d57ee68dbc76608380531] | committer: Rémi Denis-Courmont

xcb/apps: fix #includes

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

 modules/services_discovery/xcb_apps.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/services_discovery/xcb_apps.c b/modules/services_discovery/xcb_apps.c
index 594f6850ea..e2742f660e 100644
--- a/modules/services_discovery/xcb_apps.c
+++ b/modules/services_discovery/xcb_apps.c
@@ -35,7 +35,12 @@ typedef xcb_atom_t Atom;
 #ifdef HAVE_SEARCH_H
 # include <search.h>
 #endif
-#include <poll.h>
+#ifdef HAVE_POLL
+# include <poll.h>
+#endif
+#ifdef _WIN32
+# include <winsock2.h>
+#endif
 
 static int  Open (vlc_object_t *);
 static void Close (vlc_object_t *);



More information about the vlc-commits mailing list