  static inline void testProcess_usleep(unsigned int msec)
 diff -urN cmake-2.6.1/Tests/Complex/Library/CMakeLists.txt cmake-2.6.1-haiku/Tests/Complex/Library/CMakeLists.txt
 --- cmake-2.6.1/Tests/Complex/Library/CMakeLists.txt	2008-08-01 15:34:55.000000000 +0000
-+++ cmake-2.6.1-haiku/Tests/Complex/Library/CMakeLists.txt	2008-09-10 15:34:37.000000000 +0000
++++ cmake-2.6.1-haiku/Tests/Complex/Library/CMakeLists.txt	2008-09-12 15:07:33.000000000 +0000
 @@ -53,7 +53,9 @@
    )
  SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES FOO BAR)

 
diff -urN cmake-2.6.1/Source/cmSystemTools.cxx cmake-2.6.1-haiku/Source/cmSystemTools.cxx
--- cmake-2.6.1/Source/cmSystemTools.cxx	2008-08-01 15:34:53.000000000 +0000
+++ cmake-2.6.1-haiku/Source/cmSystemTools.cxx	2008-09-10 15:34:37.000000000 +0000
@@ -970,11 +970,13 @@
         error << "SIGFPE";
         break;
 #endif

 IF(${FOO_BAR_VAR} MATCHES "BAR")
diff -urN cmake-2.6.1/Tests/ComplexOneConfig/Library/CMakeLists.txt cmake-2.6.1-haiku/Tests/ComplexOneConfig/Library/CMakeLists.txt
--- cmake-2.6.1/Tests/ComplexOneConfig/Library/CMakeLists.txt	2008-08-01 15:34:56.000000000 +0000
+++ cmake-2.6.1-haiku/Tests/ComplexOneConfig/Library/CMakeLists.txt	2008-09-12 15:07:33.000000000 +0000
@@ -53,7 +53,9 @@
   )
 SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES FOO BAR)
 IF(NOT BEOS)  # No libm on BeOS.
+  IF(NOT HAIKU) # No limb on Haiku.
   SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES LINK_FLAGS "-lm")
+  ENDIF(NOT HAIKU)
 ENDIF(NOT BEOS)
