summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2020-02-10 21:45:30 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2020-02-10 21:45:30 +0100
commit9c0907498c287998bfb87e750264b114ecd22585 (patch)
tree14eb043076511461a6ea1fa3bd52b26348699903 /media-video/vdr/files
parentapp-portage/gpyutils: Bump to 0.4 (diff)
downloadgentoo-9c0907498c287998bfb87e750264b114ecd22585.tar.gz
gentoo-9c0907498c287998bfb87e750264b114ecd22585.tar.bz2
gentoo-9c0907498c287998bfb87e750264b114ecd22585.zip
media-video/vdr: compile fix for glibc-2.31
Replace obsolete stime() function with clock_settime() Suggested-by: Manuel Reimer <manuel.reimer@gmx.de> Bug: https://bugs.gentoo.org/708802 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Diffstat (limited to 'media-video/vdr/files')
-rw-r--r--media-video/vdr/files/vdr-2.4.1_glibc-2.31.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-video/vdr/files/vdr-2.4.1_glibc-2.31.patch b/media-video/vdr/files/vdr-2.4.1_glibc-2.31.patch
new file mode 100644
index 000000000000..0db8c5064ac5
--- /dev/null
+++ b/media-video/vdr/files/vdr-2.4.1_glibc-2.31.patch
@@ -0,0 +1,20 @@
+Replace obsolete stime() function with clock_settime()
+bug 708802
+
+
+Suggested-by: Manuel Reimer <manuel.reimer@gmx.de>
+Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org> ( 2020 Feb 10 )
+diff -Naur vdr-2.4.1.orig/eit.c vdr-2.4.1/eit.c
+--- vdr-2.4.1.orig/eit.c 2020-02-10 21:25:03.594761113 +0100
++++ vdr-2.4.1/eit.c 2020-02-10 21:26:32.443761113 +0100
+@@ -391,7 +391,9 @@
+ if (abs(diff) > MAX_TIME_DIFF) {
+ mutex.Lock();
+ if (abs(diff) > MAX_ADJ_DIFF) {
+- if (stime(&dvbtim) == 0)
++ timespec ts = {};
++ 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);
+ else
+ esyslog("ERROR while setting system time: %m");