[0.10] gstreamer: poll: include correct poll.h based on autoconf test

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 5 10:37:38 PST 2012


Module: gstreamer
Branch: 0.10
Commit: 599afee08da55d8ab666c648382f42d9bcab63d2
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=599afee08da55d8ab666c648382f42d9bcab63d2

Author: Idar Tollefsen <itollefs at cisco.com>
Date:   Sun Jan  1 20:17:41 2012 +0100

poll: include correct poll.h based on autoconf test

https://bugzilla.gnome.org/show_bug.cgi?id=667286

---

 gst/gstpoll.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gst/gstpoll.c b/gst/gstpoll.c
index a2c9836..5585508 100644
--- a/gst/gstpoll.c
+++ b/gst/gstpoll.c
@@ -75,7 +75,12 @@
 #define EINPROGRESS WSAEINPROGRESS
 #else
 #define _GNU_SOURCE 1
+#ifdef HAVE_SYS_POLL_H
 #include <sys/poll.h>
+#endif
+#ifdef HAVE_POLL_H
+#include <poll.h>
+#endif
 #include <sys/time.h>
 #include <sys/socket.h>
 #endif



More information about the gstreamer-commits mailing list