]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
stime(2) is only available on Linux so make it optional.
authorBernhard Froehlich <decke@bluelife.at>
Sat, 4 May 2013 12:59:52 +0000 (14:59 +0200)
committerAdam Sutton <dev@adamsutton.me.uk>
Fri, 31 May 2013 13:19:25 +0000 (14:19 +0100)
src/tvhtime.c

index e19d6c8d23b3f7f127f96e5f77f6df77beff2fb6..589840af59e35431e35d18f077fbe9e437d3af4e 100644 (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
     }
   }