I tried to compile the vdr with the following patch, unfortunately it fails 
with the following error message.

eit.c:25:18: error: missing binary operator before token "("
25 | #if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_31)
| ^
make: *** Deleting file '.dependencies'


--- a/eit.c.orig        2019-12-13 12:45:00.202346585 +0100
+++ b/eit.c     2019-12-13 12:46:20.027353073 +0100
@@ -18,6 +18,32 @@
 #include "libsi/section.h"
 #include "libsi/descriptor.h"

+
+
+#include <shlib-compat.h>
+
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_31)
+
+#include <time.h>
+ 
+/* Set the system clock to *WHEN.  */
+ 
+int
+attribute_compat_text_section
+__stime (const time_t *when)
+  {
+  struct timespec ts;
+  ts.tv_sec = *when;
+  ts.tv_nsec = 0;
+
+  return __clock_settime (CLOCK_REALTIME, &ts);
+  }
+ 
+compat_symbol (libc, __stime, stime, GLIBC_2_0);
+#endif
+
+
+
 #define VALID_TIME (31536000 * 2) // two years

 #define DBGEIT 0

Regards
Martin
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to