cmake: Don't use poll() on Mac OS X, as it can't poll a tty properly.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 23 Feb 2008 21:52:59 +0000 (21:52 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 23 Feb 2008 21:52:59 +0000 (21:52 +0000)
extras/buildsystem/cmake/include/config.cmake

index 219c229..3efaeb4 100644 (file)
@@ -209,6 +209,10 @@ include( ${CMAKE_SOURCE_DIR}/cmake/vlc_test_inline.cmake )
 if(APPLE)
     include( ${CMAKE_SOURCE_DIR}/cmake/vlc_find_frameworks.cmake )
 
+    # Mac OS X (10.4 and 10.5)  can't poll a tty properly
+    # So we deactivate its uses
+    set(HAVE_POLL OFF)
+
     if(ENABLE_NO_SYMBOL_CHECK)
         set(DYNAMIC_LOOKUP "-undefined dynamic_lookup")
     else(ENABLE_NO_SYMBOL_CHECK)