From e500631954c8d390e8705fde7f50d1acc006406e Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 12 Mar 2009 01:03:39 -0700 Subject: darwin: Don't use poll() on versions of darwin before darwin10 --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d707499..8c7a031 100755 --- a/configure.ac +++ b/configure.ac @@ -55,8 +55,15 @@ PKG_CHECK_MODULES(XT, sm x11 xproto kbproto) AC_CHECK_HEADER([alloca.h], AC_DEFINE(INCLUDE_ALLOCA_H, 1, [Define to 1 if Xalloca.h should include ])) # Map function checks to old Imake #defines -AC_CHECK_FUNC(poll, AC_DEFINE(USE_POLL,1, - [Define to 1 if you have the "poll" function.])) +case $host_os in + # darwin has poll() but can't be used to poll character devices + # darwin10 (SnowLeopard) should be tested as well once released + darwin7*) ;; darwin8*) ;; darwin9*) ;; + *) + AC_CHECK_FUNC(poll, AC_DEFINE(USE_POLL,1, + [Define to 1 if you have the "poll" function.])) + ;; +esac AC_CHECK_FUNC(snprintf, AC_DEFINE(USE_SNPRINTF,1, [Define to 1 if you have the "snprintf" function.])) -- cgit v1.2.3