gstpoll: Don't use poll on systems with broken poll
authorEdward Hervey <bilboed@bilboed.com>
Mon, 12 Oct 2009 07:50:46 +0000 (09:50 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Oct 2009 07:53:58 +0000 (09:53 +0200)
gst/gstpoll.c

index a49c6e4..821f6dd 100644 (file)
 /* OS/X needs this because of bad headers */
 #include <string.h>
 
+/* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
+ * so we prefer our own poll emulation.
+ */
+#if defined(BROKEN_POLL)
+#undef HAVE_POLL
+#endif
+
 #include "gstpoll.h"
 
 #define GST_CAT_DEFAULT GST_CAT_POLL