about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/clock_nanosleep.c
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2020-03-15 00:18:36 +0100
committerLukasz Majewski <lukma@denx.de>2020-03-23 21:21:28 +0100
commit03343699496edd866141a8bbdfeb19ae98537394 (patch)
tree1aa39e20c0f8901778f100cf575577c0747681a0 /sysdeps/unix/sysv/linux/clock_nanosleep.c
parentb8de7980c06d97f36cdf4fe0871be7ec8ca58073 (diff)
downloadglibc-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_nanosleep.c')
-rw-r--r--sysdeps/unix/sysv/linux/clock_nanosleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_nanosleep.c b/sysdeps/unix/sysv/linux/clock_nanosleep.c
index 48175ef1da..cc7a09569d 100644
--- a/sysdeps/unix/sysv/linux/clock_nanosleep.c
+++ b/sysdeps/unix/sysv/linux/clock_nanosleep.c
@@ -79,6 +79,8 @@ __clock_nanosleep_time64 (clockid_t clock_id, int flags, const struct __timespec
 }
 
 #if __TIMESIZE != 64
+libc_hidden_def (__clock_nanosleep_time64)
+
 int
 __clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *req,
                    struct timespec *rem)