FTBFS on hurd-i386: Necessary functions disabled (closes: #945599)
datefudge fails to build from source on the Hurd.
The reason for the failure are the #ifndef-Blocks at the functions
time() and clock_gettime(), which are apparently no longer necessary.
The attached patch removes these #ifndef-Blocks.
Paul Sonnenschein authored 4 years ago
Robert Luberda committed 3 years ago
49 | 49 | *seconds -= fudge; |
50 | 50 | } |
51 | 51 | |
52 | #ifndef __GNU__ | |
53 | ||
54 | 52 | time_t time(time_t *x) { |
55 | 53 | static time_t (*libc_time)(time_t *) = NULL; |
56 | 54 | time_t res; |
62 | 60 | set_fudge(&res); |
63 | 61 | return res; |
64 | 62 | } |
65 | ||
66 | #endif | |
67 | 63 | |
68 | 64 | int __gettimeofday(struct timeval *x, struct timezone *y) { |
69 | 65 | static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL; |
81 | 77 | return __gettimeofday(x,y); |
82 | 78 | } |
83 | 79 | |
84 | #ifndef __GNU__ | |
85 | ||
86 | 80 | int clock_gettime(clockid_t x, struct timespec *y) { |
87 | 81 | static int (*libc_clock_gettime)(clockid_t, struct timespec*); |
88 | 82 | int res; |
94 | 88 | set_fudge(&y->tv_sec); |
95 | 89 | return 0; |
96 | 90 | } |
97 | ||
98 | #endif |