summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@yuffie.local>2009-03-12 01:03:39 -0700
committerJeremy Huddleston <jeremy@yuffie.local>2009-03-12 01:03:39 -0700
commite500631954c8d390e8705fde7f50d1acc006406e (patch)
treee0dfe87c8939473c9a82bf07a7bcb1851d6d47fe
parent81792a4cb402c4e5275d63465bc5d65599e34a25 (diff)
darwin: Don't use poll() on versions of darwin before darwin10
-rwxr-xr-xconfigure.ac11
1 files 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 <alloca.h>]))
# 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.]))