Fix build on macOS Sierra (10.12)

Rename OS X to macOS
Add Sierra to Travis
This commit is contained in:
Alexey Sokolov
2017-01-15 11:36:53 +00:00
parent 55adbc896e
commit c7c878adc8
3 changed files with 28 additions and 7 deletions
+1 -1
View File
@@ -417,7 +417,7 @@ timeval CUtils::GetTime() {
#ifdef HAVE_CLOCK_GETTIME
timespec ts;
if (clock_gettime(CLOCK_REALTIME, &ts) == 0) {
return { ts.tv_sec, ts.tv_nsec / 1000 };
return { ts.tv_sec, static_cast<suseconds_t>(ts.tv_nsec / 1000) };
}
#endif