Commit 5cb2d1e5 authored by Jeremy Huddleston's avatar Jeremy Huddleston

darwin: Don't use poll()

Signed-off-by: default avatarJeremy Huddleston <jeremyhu@freedesktop.org>
parent 21e3e5b6
......@@ -39,8 +39,8 @@ AC_PROG_INSTALL
AC_CANONICAL_HOST
AC_CHECK_HEADERS([poll.h pty.h stropts.h sys/param.h sys/select.h])
AC_CHECK_FUNCS([poll select grantpt])
AC_CHECK_HEADERS([pty.h stropts.h sys/param.h sys/select.h])
AC_CHECK_FUNCS([select grantpt])
AC_CHECK_LIB(z, gzopen,, AC_MSG_ERROR([zlib not found]))
......@@ -55,10 +55,19 @@ AC_SUBST([LOCALEALIASFILE])
PKG_CHECK_MODULES(LUIT, x11 fontenc)
case $host_os in
# darwin has poll() but can't be used to poll character devices (atleast
through SnowLeopard)
darwin*)
OS_CFLAGS=
;;
linux*)
AC_CHECK_HEADERS([poll.h])
AC_CHECK_FUNCS([poll])
OS_CFLAGS="-D_XOPEN_SOURCE=500"
;;
*)
AC_CHECK_HEADERS([poll.h])
AC_CHECK_FUNCS([poll])
OS_CFLAGS=
;;
esac
......
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