diff options
author | Lukasz Majewski <lukma@denx.de> | 2020-03-15 00:18:36 +0100 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2020-03-23 21:21:28 +0100 |
commit | 03343699496edd866141a8bbdfeb19ae98537394 (patch) | |
tree | 1aa39e20c0f8901778f100cf575577c0747681a0 /sysdeps/unix/sysv/linux/clock_gettime.c | |
parent | b8de7980c06d97f36cdf4fe0871be7ec8ca58073 (diff) | |
download | glibc-03343699496edd866141a8bbdfeb19ae98537394.tar.gz glibc-03343699496edd866141a8bbdfeb19ae98537394.tar.xz glibc-03343699496edd866141a8bbdfeb19ae98537394.zip |
y2038: fix: Add missing libc_hidden_def attribute for some syscall wrappers
During the conversion to support 64 bit time on some architectures with __WORDSIZE == 32 && __TIMESIZE != 64 the libc_hidden_def attribute for eligible functions was by mistake omitted. This patch fixes this issue and exports (and allows using) those functions when Y2038 support is enabled in glibc.
Diffstat (limited to 'sysdeps/unix/sysv/linux/clock_gettime.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/clock_gettime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_gettime.c b/sysdeps/unix/sysv/linux/clock_gettime.c index d6c0b4f637..bfe3823b68 100644 --- a/sysdeps/unix/sysv/linux/clock_gettime.c +++ b/sysdeps/unix/sysv/linux/clock_gettime.c @@ -73,6 +73,8 @@ __clock_gettime64 (clockid_t clock_id, struct __timespec64 *tp) } #if __TIMESIZE != 64 +libc_hidden_def (__clock_gettime64) + int __clock_gettime (clockid_t clock_id, struct timespec *tp) { |