removed unnecessary patch
This commit is contained in:
parent
497e76c7e1
commit
95534319f0
@ -6,7 +6,6 @@ Summary: Fake the system date
|
|||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://packages.qa.debian.org/d/datefudge.html
|
URL: http://packages.qa.debian.org/d/datefudge.html
|
||||||
Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz
|
Source0: http://cdn.debian.net/debian/pool/main/d/datefudge/%{name}_%{version}.tar.xz
|
||||||
Patch1: datefudge_1.23-tz.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
%description
|
%description
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
diff --git a/datefudge.c b/datefudge.c
|
|
||||||
index fe93ef8..5c2db2e 100644
|
|
||||||
--- a/datefudge.c
|
|
||||||
+++ b/datefudge.c
|
|
||||||
@@ -66,8 +66,8 @@ time_t time(time_t *x) {
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-int __gettimeofday(struct timeval *x, struct timezone *y) {
|
|
||||||
- static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL;
|
|
||||||
+int __gettimeofday(struct timeval *x, void *y) {
|
|
||||||
+ static int (*libc_gettimeofday)(struct timeval *, void *) = NULL;
|
|
||||||
int res;
|
|
||||||
|
|
||||||
if(!libc_gettimeofday)
|
|
||||||
@@ -78,7 +78,7 @@ int __gettimeofday(struct timeval *x, struct timezone *y) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
-int gettimeofday(struct timeval *x, struct timezone *y) {
|
|
||||||
+int gettimeofday(struct timeval *x, void *y) {
|
|
||||||
return __gettimeofday(x,y);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user