  
  #ifdef HAVE_SYS_SOCKET_H
  #include <sys/socket.h>
-diff -ur cmake-2.6.1/Utilities/cmcurl/select.c cmake-2.6.1-haiku/Utilities/cmcurl/select.c
+diff -urN cmake-2.6.1/Utilities/cmcurl/select.c cmake-2.6.1-haiku/Utilities/cmcurl/select.c
 --- cmake-2.6.1/Utilities/cmcurl/select.c	2008-08-01 15:34:57.000000000 +0000
-+++ cmake-2.6.1-haiku/Utilities/cmcurl/select.c	2008-08-13 16:07:42.000000000 +0000
++++ cmake-2.6.1-haiku/Utilities/cmcurl/select.c	2008-08-20 13:49:07.000000000 +0000
 @@ -39,7 +39,7 @@
  #error "We can't compile without select() support!"
  #endif

 /* BeOS 5 doesn't have usleep(), but it has snooze(), which is identical. */
 # include <be/kernel/OS.h>
 static inline void testProcess_usleep(unsigned int msec)
diff -ur 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-08-13 16:07:42.000000000 +0000
@@ -53,7 +53,9 @@
   )
 SET_TARGET_PROPERTIES(CMakeTestCLibraryShared PROPERTIES FOO BAR)

   this->RegisterGenerator("DEB", "Debian packages",
     cmCPackDebGenerator::CreateGenerator);
   this->RegisterGenerator("RPM", "RPM packages",
diff -urN cmake-2.6.1/Source/cmCTest.cxx cmake-2.6.1-haiku/Source/cmCTest.cxx
--- cmake-2.6.1/Source/cmCTest.cxx	2008-08-01 15:34:51.000000000 +0000
+++ cmake-2.6.1-haiku/Source/cmCTest.cxx	2008-08-20 13:49:06.000000000 +0000
@@ -49,10 +49,15 @@
 
 #include <memory> // auto_ptr
