summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdar Tollefsen <itollefs@cisco.com>2012-01-01 20:17:41 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-05 18:15:28 +0000
commit599afee08da55d8ab666c648382f42d9bcab63d2 (patch)
tree904415ccce4980f0dbd942cb61c0d4cbbeec81e0
parent92c2e5176e57bf4cb189f5416ef3998d5a45278b (diff)
poll: include correct poll.h based on autoconf test
https://bugzilla.gnome.org/show_bug.cgi?id=667286
-rw-r--r--gst/gstpoll.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/gstpoll.c b/gst/gstpoll.c
index a2c9836f4..55855087c 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