poll() emulation for BeOS, and maybe MinGW.
[ffmpeg.git] / configure
index 014ac88..53f65d2 100755 (executable)
--- a/configure
+++ b/configure
@@ -548,6 +548,7 @@ HAVE_LIST='
     sdl
     sdl_video_size
     soundcard_h
+    sys_poll_h
     sys_soundcard_h
     threads
     w32threads
@@ -1430,6 +1431,12 @@ check_func inet_aton
 check_func localtime_r
 enabled zlib && check_lib zlib.h zlibVersion -lz || zlib="no"
 
+# ffserver uses poll(),
+# if it's not found we can emulate it using select().
+if enabled ffserver; then
+    check_header sys/poll.h
+fi
+
 # check for some common methods of building with pthread support
 # do this before the optional library checks as some of them require pthreads
 if enabled pthreads; then