# HG changeset patch
# User diego
# Date 1297018912 0
# Node ID b3782b0b1d924217f5472ed61fb39e06e7bc5f5b
# Parent  87504a38a66653502e580c949f2405816e5826b9
configure: Check for sys/poll.h.

FFmpeg uses it conditionally, but configure defines it unconditionally,
thus breaking compilation on MinGW which has no sys/poll.h.

patch by Gianluigi Tiesi, mplayer netfarm it

diff -r 87504a38a666 -r b3782b0b1d92 configure
--- a/configure	Sun Feb 06 14:06:35 2011 +0000
+++ b/configure	Sun Feb 06 19:01:52 2011 +0000
@@ -3418,6 +3418,14 @@
 echores "$_gethostbyname2"
 
 
+echocheck "sys/poll.h"
+poll_h=no
+def_poll_h='#define HAVE_POLL_H 0'
+header_check sys/poll.h && poll_h=yes &&
+  def_poll_h='#define HAVE_POLL_H 1'
+echores "$poll_h"
+
+
 echocheck "inttypes.h (required)"
 _inttypes=no
 header_check inttypes.h && _inttypes=yes
@@ -8604,6 +8612,7 @@
 $def_mmap
 $def_network
 $def_pic
+$def_poll_h
 $def_posix_memalign
 $def_pthreads
 $def_round
@@ -8631,7 +8640,6 @@
 #define HAVE_INLINE_ASM 1
 #define HAVE_ISATTY 0
 #define HAVE_LDBRX 0
-#define HAVE_POLL_H 1
 #define HAVE_PPC4XX 0
 #define HAVE_STRERROR_R 0
 #define HAVE_SYMVER_ASM_LABEL 0