From 5fef3c4f5bc676bf1fc57ed7686f549163fa720b Mon Sep 17 00:00:00 2001 From: Benjamin Reed Date: Tue, 12 Feb 2008 15:06:26 -0600 Subject: [PATCH] Don't use poll on OSX, it causes deadlocks (even on leopard). --- configure.in | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/configure.in b/configure.in index 6db6f7c..16fad47 100644 --- a/configure.in +++ b/configure.in @@ -584,7 +584,17 @@ AC_DEFINE_UNQUOTED(DBUS_HAVE_ATOMIC_INT_COND, [$have_atomic_inc_cond], AC_CHECK_LIB(socket,socket) AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)]) -AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv clearenv unsetenv socketpair getgrouplist fpathconf setrlimit) +AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep setenv clearenv unsetenv socketpair getgrouplist fpathconf setrlimit) + +case host_os in + Darwin*) + broken_poll=yes + ;; +esac + +if [ ! x$broken_poll = xyes ]; then + AC_CHECK_FUNCS(poll) +fi AC_MSG_CHECKING(for dirfd) AC_TRY_LINK([ -- 1.5.3.7