[Xcb-commit] configure.ac

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Thu Apr 9 05:12:22 PDT 2009


 configure.ac |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 2a4f1cf3801080276694f5026d35220b65201038
Author: Jeremy Huddleston <jeremyhu at freedesktop.org>
Date:   Thu Apr 9 05:12:02 2009 -0700

    darwin: Don't use poll() on versions of darwin before darwin10

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")


More information about the xcb-commit mailing list