poll: include correct poll.h based on autoconf test
authorIdar Tollefsen <itollefs@cisco.com>
Sun, 1 Jan 2012 19:17:41 +0000 (20:17 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 Jan 2012 23:47:46 +0000 (23:47 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=667286

gst/gstpoll.c

index a2c9836..5585508 100644 (file)
 #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