stime(2) is only available on Linux so make it optional.
This commit is contained in:
parent
252a15f728
commit
0fdc4fc193
1 changed files with 4 additions and 0 deletions
|
@ -99,7 +99,11 @@ tvhtime_update ( struct tm *tm )
|
|||
if (tvhtime_update_enabled) {
|
||||
if (llabs(t2 - t1) > tvhtime_tolerance) {
|
||||
tvhlog(LOG_DEBUG, "time", "updated system clock");
|
||||
#ifdef stime
|
||||
stime(&now);
|
||||
#else
|
||||
tvhlog(LOG_NOTICE, "time", "stime(2) not implemented");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue