mirror of
https://github.com/znc/znc.git
synced 2026-06-30 23:11:28 +02:00
Fix build on macOS Sierra (10.12)
Rename OS X to macOS Add Sierra to Travis
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user