Accepting request 831504 from devel:libraries:c_c++
- update to 1.24: * Fix FTBFS on hurd-i386: Necessary functions disabled * Fix FTBFS with glibc 2.31 (conflicting gettimeofday prototype) - remove glibc-2.31-fix.patch (upstream) OBS-URL: https://build.opensuse.org/request/show/831504 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/datefudge?expand=0&rev=4factory
commit
e18464a437
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3b7668a107145e9d3d47b10520ce623c1b6dc15f571050d6140c2356c1a2d645
|
||||
size 13952
|
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:80efab249232deeb142bf8a0ec66f2cf596c45560e4fdd28f3b5bdd290ac0385
|
||||
size 14152
|
@ -1,30 +0,0 @@
|
||||
diff --git a/datefudge.c b/datefudge.c
|
||||
index fe93ef8..3785563 100644
|
||||
--- a/datefudge.c
|
||||
+++ b/datefudge.c
|
||||
@@ -66,8 +66,13 @@ time_t time(time_t *x) {
|
||||
|
||||
#endif
|
||||
|
||||
+#if __GLIBC_PREREQ (2, 31)
|
||||
+int __gettimeofday(struct timeval *x, void *y) {
|
||||
+ static int (*libc_gettimeofday)(struct timeval *, void *) = NULL;
|
||||
+#else
|
||||
int __gettimeofday(struct timeval *x, struct timezone *y) {
|
||||
static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL;
|
||||
+#endif
|
||||
int res;
|
||||
|
||||
if(!libc_gettimeofday)
|
||||
@@ -78,7 +83,11 @@ int __gettimeofday(struct timeval *x, struct timezone *y) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#if __GLIBC_PREREQ (2, 31)
|
||||
+int gettimeofday(struct timeval *x, void *y) {
|
||||
+#else
|
||||
int gettimeofday(struct timeval *x, struct timezone *y) {
|
||||
+#endif
|
||||
return __gettimeofday(x,y);
|
||||
}
|
||||
|
Loading…
Reference in New Issue