From 4ace63889357f5ffc8b96a8a6144352e7ce56eec Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 22 Jul 2005 07:27:02 +0000 Subject: Big set of various patches to get the NPTL libraries to build and link. --- libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c b/libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c index ef897c1e9..d4ed1caba 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sem_timedwait.c @@ -56,7 +56,11 @@ sem_timedwait (sem_t *sem, const struct timespec *abstime) int sec, nsec; /* Get the current time. */ +#ifdef __UCLIBC__ + gettimeofday (&tv, NULL); +#else __gettimeofday (&tv, NULL); +#endif /* Compute relative timeout. */ sec = abstime->tv_sec - tv.tv_sec; -- cgit v1.2.3