Browse Source

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.

Zach Mullen 16 years ago
parent
commit
254d267e36
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
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