[Cmake-commits] [cmake-commits] zach.mullen committed SystemTools.cxx 1.255 1.256

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Nov 24 14:10:07 EST 2009


Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv13106

Modified Files:
	SystemTools.cxx 
Log Message:
Mac has gettimeofday defined, but cmsys wasn't aware of that, so it was falling back to using time() which only provides second resolution.  Fixed to allow usec res.


Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.255
retrieving revision 1.256
diff -C 2 -d -r1.255 -r1.256
*** SystemTools.cxx	16 Oct 2009 17:23:52 -0000	1.255
--- SystemTools.cxx	24 Nov 2009 19:10:05 -0000	1.256
***************
*** 288,292 ****
  #    define TIMEB _timeb
  #  endif
! #elif defined( __CYGWIN__ ) || defined( __linux__ )
  #  include <sys/time.h>
  #  include <time.h>
--- 288,292 ----
  #    define TIMEB _timeb
  #  endif
! #elif defined( __CYGWIN__ ) || defined( __linux__ ) || defined(__APPLE__)
  #  include <sys/time.h>
  #  include <time.h>



More information about the Cmake-commits mailing list