summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-04-09 05:12:02 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-04-09 05:12:02 -0700
commit2a4f1cf3801080276694f5026d35220b65201038 (patch)
tree8cb6a43413918613f30b361fc871af79fce53ded
parent6e2e87d0bbdff87f127986a0666445160d52e6a5 (diff)
darwin: Don't use poll() on versions of darwin before darwin10
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 46c4611..a63f71f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,7 +116,14 @@ AC_PREREQ([2.59c], [], [AC_SUBST([htmldir], [m4_ifset([AC_PACKAGE_TARNAME],
XCB_CHECK_DOXYGEN()
-AC_CHECK_FUNC(poll, [AC_DEFINE(USE_POLL, 1, [poll() function is available])], )
+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, [poll() function is available])], )
+ ;;
+esac
XCB_EXTENSION(Composite, "yes")
XCB_EXTENSION(Damage, "yes")