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
parent 0efd76a2a6
commit b94257e50b

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