[vlc-devel] [PATCH] dbus: fix case where poll() is unavailable

Timothy Gu timothygu99 at gmail.com
Sun Jun 29 04:50:36 CEST 2014


If poll() isn't available, vlc_fixups.h will take care of it.

Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
---
 modules/control/dbus/dbus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index bbf7f7b..c549e24 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -64,7 +64,9 @@
 #include <assert.h>
 #include <string.h>
 
+#ifdef HAVE_POLL
 #include <poll.h>
+#endif // HAVE_POLL
 #include <errno.h>
 #include <unistd.h>
 
-- 
1.9.1




More information about the vlc-devel mailing list