0002-Fixed-compatibility-with-current-versions-of-glibc.patch 1.0 KB

123456789101112131415161718192021222324252627
  1. From 930c2cd2eb8947413e88404fa94c66e4e1db5ad6 Mon Sep 17 00:00:00 2001
  2. From: Klaus Schmidinger <vdr@tvdr.de>
  3. Date: Mon, 4 May 2020 12:28:31 +0200
  4. Subject: Fixed compatibility with current versions of glibc
  5. [Retrieved (and updated to remove CONTRIBUTORS and HISTORY) from:
  6. https://projects.vdr-developer.org/git/vdr.git/commit?id=930c2cd2eb8947413e88404fa94c66e4e1db5ad6]
  7. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. diff --git a/eit.c b/eit.c
  9. index 72a45e5..d437b44 100644
  10. --- a/eit.c
  11. +++ b/eit.c
  12. @@ -391,7 +391,9 @@ cTDT::cTDT(const u_char *Data)
  13. if (abs(diff) > MAX_TIME_DIFF) {
  14. mutex.Lock();
  15. if (abs(diff) > MAX_ADJ_DIFF) {
  16. - if (stime(&dvbtim) == 0)
  17. + timespec ts = { 0 };
  18. + ts.tv_sec = dvbtim;
  19. + if (clock_settime(CLOCK_REALTIME, &ts) == 0)
  20. isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(dvbtim), dvbtim);
  21. else
  22. esyslog("ERROR while setting system time: %m");
  23. --
  24. cgit v0.10.2