summaryrefslogtreecommitdiff
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-11-24 14:10:05 -0500
committerZach Mullen <zach.mullen@kitware.com>2009-11-24 14:10:05 -0500
commit254d267e36f20b3df1f1f87b2b9161aa19e6a83b (patch)
tree2ad5728723b34fa4854e05176c7a0d2e2b9458a8 /Source/kwsys/SystemTools.cxx
parent1d6e7ed71ffab4f2716353da08eafab0f3398c8a (diff)
downloadcmake-254d267e36f20b3df1f1f87b2b9161aa19e6a83b.tar.gz
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/kwsys/SystemTools.cxx')
-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 a6dee1b336..1c00621d3e 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