Re: eit.c:394:13: error: 'stime' was not declared in this scope; did you mean 'ctime'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux