Codebase list datefudge / 6a5cddf
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
1 changed file(s) with 0 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
4949 *seconds -= fudge;
5050 }
5151
52 #ifndef __GNU__
53
5452 time_t time(time_t *x) {
5553 static time_t (*libc_time)(time_t *) = NULL;
5654 time_t res;
6260 set_fudge(&res);
6361 return res;
6462 }
65
66 #endif
6763
6864 int __gettimeofday(struct timeval *x, struct timezone *y) {
6965 static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL;
8177 return __gettimeofday(x,y);
8278 }
8379
84 #ifndef __GNU__
85
8680 int clock_gettime(clockid_t x, struct timespec *y) {
8781 static int (*libc_clock_gettime)(clockid_t, struct timespec*);
8882 int res;
9488 set_fudge(&y->tv_sec);
9589 return 0;
9690 }
97
98 #endif