summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-11-24 19:10:05 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-11-24 19:10:05 (GMT)
commit254d267e36f20b3df1f1f87b2b9161aa19e6a83b (patch)
tree2ad5728723b34fa4854e05176c7a0d2e2b9458a8 /Source
parent1d6e7ed71ffab4f2716353da08eafab0f3398c8a (diff)
downloadCMake-254d267e36f20b3df1f1f87b2b9161aa19e6a83b.zip
CMake-254d267e36f20b3df1f1f87b2b9161aa19e6a83b.tar.gz
CMake-254d267e36f20b3df1f1f87b2b9161aa19e6a83b.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemTools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index a6dee1b..1c00621 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -287,7 +287,7 @@ extern int putenv (char *__string) __THROW;
# define FTIME _ftime
# define TIMEB _timeb
# endif
-#elif defined( __CYGWIN__ ) || defined( __linux__ )
+#elif defined( __CYGWIN__ ) || defined( __linux__ ) || defined(__APPLE__)
# include <sys/time.h>
# include <time.h>
# define HAVE_GETTIMEOFDAY