Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:ecsos
datefudge
glibc-2.31-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glibc-2.31-fix.patch of Package datefudge
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); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor