|
@@ -4,6 +4,8 @@ as stime func doesn't exists anymore in newer versions of glibc >= 2.31 due
|
|
|
to obseletion, a replacment with clock_settime is inorder to fix the issue.
|
|
|
|
|
|
Signed-off-by: Dagg Stompler <daggs@gmx.com>
|
|
|
+[Fabrice: fix for gcc >= 14]
|
|
|
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
|
|
--- a/util/dvbdate/dvbdate.c
|
|
|
+++ b/util/dvbdate/dvbdate.c
|
|
@@ -13,7 +15,7 @@ Signed-off-by: Dagg Stompler <daggs@gmx.com>
|
|
|
{
|
|
|
- if (stime(new_time)) {
|
|
|
+ struct timespec s = {0};
|
|
|
-+ s.tv_sec = new_time;
|
|
|
++ s.tv_sec = *new_time;
|
|
|
+
|
|
|
+ if (clock_settime(CLOCK_REALTIME, &s)) {
|
|
|
perror("Unable to set time");
|