stime(2) is only available on Linux so make it optional.

This commit is contained in:
Bernhard Froehlich 2013-05-04 14:59:52 +02:00 committed by Adam Sutton
parent 252a15f728
commit 0fdc4fc193

View file

@ -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
}
}