darwin: Don't use poll() on versions of darwin before darwin10
authorJeremy Huddleston <jeremyhu@freedesktop.org>
Thu, 9 Apr 2009 12:12:02 +0000 (05:12 -0700)
committerJeremy Huddleston <jeremyhu@freedesktop.org>
Thu, 9 Apr 2009 12:12:02 +0000 (05:12 -0700)
configure.ac

index 46c4611..a63f71f 100644 (file)
@@ -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")