Skip to content

Commit

Permalink
preload: Fix time64 redirect for glibc 2.39.9
Browse files Browse the repository at this point in the history
__USE_TIME_BITS64 is now always defined on 64 bit architectures, but the
`__clock_gettime64` redirect doesn't exist there.

See https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a4ed0471d7
  • Loading branch information
martinpitt committed May 20, 2024
1 parent 94589f1 commit d88d2d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libumockdev-preload.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf,

#ifdef __GLIBC__
/* Fixup for making a mess with __REDIRECT above */
#ifdef __USE_TIME_BITS64
#ifdef __USE_TIME64_REDIRECTS
#define clock_gettime __clock_gettime64
extern int clock_gettime(clockid_t clockid, struct timespec *tp);
#endif
Expand Down Expand Up @@ -1420,7 +1420,7 @@ WRAP_STAT(,64);
WRAP_STAT(l,64);
WRAP_FSTATAT(,64);
WRAP_FOPEN(,64);
#if defined(__USE_FILE_OFFSET64) && defined(__USE_TIME_BITS64)
#if defined(__USE_FILE_OFFSET64) && defined(__USE_TIME64_REDIRECTS)
#define stat64_time64 stat64
WRAP_STAT(__,64_time64);
WRAP_STAT(__l,64_time64);
Expand Down

0 comments on commit d88d2d5

Please sign in to comment.