mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed compatibility with current versions of glibc
This commit is contained in:
parent
225c495632
commit
930c2cd2eb
@ -2920,6 +2920,7 @@ Manuel Reimer <Manuel.Reimer@gmx.de>
|
|||||||
for setting the environment variables HOME, USER, LOGNAME and SHELL accordingly
|
for setting the environment variables HOME, USER, LOGNAME and SHELL accordingly
|
||||||
when switching to a less privileged user id
|
when switching to a less privileged user id
|
||||||
for reporting a bug in moving channels between number groups in SVDRP's MOVC command
|
for reporting a bug in moving channels between number groups in SVDRP's MOVC command
|
||||||
|
for fixing compatibility with current versions of glibc
|
||||||
|
|
||||||
Rene van den Braken <rene@vandenbraken.name>
|
Rene van den Braken <rene@vandenbraken.name>
|
||||||
for reporting a bug in writing the PCR pid into the PMT in
|
for reporting a bug in writing the PCR pid into the PMT in
|
||||||
|
1
HISTORY
1
HISTORY
@ -9428,3 +9428,4 @@ Video Disk Recorder Revision History
|
|||||||
- Now retuning if the received transponder's SDT doesn't contain the expected values
|
- Now retuning if the received transponder's SDT doesn't contain the expected values
|
||||||
for NID and TID (thanks to Uwe Scheffler for reporting a problem with failed tuning
|
for NID and TID (thanks to Uwe Scheffler for reporting a problem with failed tuning
|
||||||
in SCR systems, and Helmut Binder for helping with the implementation).
|
in SCR systems, and Helmut Binder for helping with the implementation).
|
||||||
|
- Fixed compatibility with current versions of glibc (thanks to Manuel Reimer).
|
||||||
|
6
eit.c
6
eit.c
@ -8,7 +8,7 @@
|
|||||||
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
|
||||||
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
|
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
|
||||||
*
|
*
|
||||||
* $Id: eit.c 4.7 2019/05/20 09:55:22 kls Exp $
|
* $Id: eit.c 4.8 2020/05/04 12:28:31 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "eit.h"
|
#include "eit.h"
|
||||||
@ -391,7 +391,9 @@ cTDT::cTDT(const u_char *Data)
|
|||||||
if (abs(diff) > MAX_TIME_DIFF) {
|
if (abs(diff) > MAX_TIME_DIFF) {
|
||||||
mutex.Lock();
|
mutex.Lock();
|
||||||
if (abs(diff) > MAX_ADJ_DIFF) {
|
if (abs(diff) > MAX_ADJ_DIFF) {
|
||||||
if (stime(&dvbtim) == 0)
|
timespec ts = { 0 };
|
||||||
|
ts.tv_sec = dvbtim;
|
||||||
|
if (clock_settime(CLOCK_REALTIME, &ts) == 0)
|
||||||
isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(dvbtim), dvbtim);
|
isyslog("system time changed from %s (%ld) to %s (%ld)", *TimeToString(loctim), loctim, *TimeToString(dvbtim), dvbtim);
|
||||||
else
|
else
|
||||||
esyslog("ERROR while setting system time: %m");
|
esyslog("ERROR while setting system time: %m");
|
||||||
|
Loading…
Reference in New Issue
Block a user