[vlc-devel] commit: configure.ac poll: Use an AC_MESG_WARN if !HAVE_POLL on non-Windows platforms ( Derk-Jan Hartman )
git version control
git at videolan.org
Thu Aug 7 22:16:33 CEST 2008
vlc | branch: master | Derk-Jan Hartman <hartman at veda.student.utwente.nl> | Thu Aug 7 22:15:52 2008 +0200| [8e8f3ca3979c64bb27f8d62e1ea61f4189b57a0e] | committer: Derk-Jan Hartman
configure.ac poll: Use an AC_MESG_WARN if !HAVE_POLL on non-Windows platforms
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8e8f3ca3979c64bb27f8d62e1ea61f4189b57a0e
---
configure.ac | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index a810c61..b5eebe4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -811,7 +811,12 @@ AC_CHECK_TYPE(ssize_t,, [
])
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
need_dirent=false
More information about the vlc-devel
mailing list