changeset 32780:b3782b0b1d92

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
author diego
date Sun, 06 Feb 2011 19:01:52 +0000
parents 87504a38a666
children 93629a05a380
files configure
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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