summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c b/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
index 932e27300..8fdccac70 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/lowlevellock.c
@@ -50,7 +50,11 @@ __lll_timedlock_wait (int *futex, const struct timespec *abstime)
struct timespec rt;
/* Get the current time. */
+#ifdef __UCLIBC__
+ (void) gettimeofday (&tv, NULL);
+#else
(void) __gettimeofday (&tv, NULL);
+#endif
/* Compute relative timeout. */
rt.tv_sec = abstime->tv_sec - tv.tv_sec;
@@ -105,7 +109,11 @@ __lll_timedwait_tid (int *tidp, const struct timespec *abstime)
struct timespec rt;
/* Get the current time. */
+#ifdef __UCLIBC__
+ (void) gettimeofday (&tv, NULL);
+#else
(void) __gettimeofday (&tv, NULL);
+#endif
/* Compute relative timeout. */
rt.tv_sec = abstime->tv_sec - tv.tv_sec;