Commit 8e8f3ca3 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

configure.ac poll: Use an AC_MESG_WARN if !HAVE_POLL on non-Windows platforms

parent baa0d1d8
...@@ -811,7 +811,12 @@ AC_CHECK_TYPE(ssize_t,, [ ...@@ -811,7 +811,12 @@ AC_CHECK_TYPE(ssize_t,, [
]) ])
dnl Check for poll dnl Check for poll
AC_SEARCH_LIBS(poll, [poll], [AC_DEFINE(HAVE_POLL, 1, [Define to 1 if the OS is usabl... err, has poll().])]) AC_SEARCH_LIBS(poll, [poll], [AC_DEFINE(HAVE_POLL, 1, [Define to 1 if the OS is usabl... err, has poll().])], [
if test ${SYS} != "mingw32"
then
AC_MSG_WARN([Your platform does not support poll(). VLC has it's own poll() implementation, but it is only intended to be used on Windows. VLC might crash or be insecure when you see this message. Either switch to an OS with a proper poll() implementation, or implement one for your OS in VLC])
fi
])
dnl Check for dirent dnl Check for dirent
need_dirent=false need_dirent=false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment