From 6a65a568fa4d9515265842c8bcf11a7449f3c325 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 1 Feb 2002 07:24:03 +0000 Subject: * semaphore.c (sem_trywait): Fix missing errno return for systems that define NEED_SEM (e.g. early WinCE). * mutex.c (pthread_mutex_timedlock): Return ENOTSUP for systems that define NEED_SEM since they don't have sem_trywait(). --- mutex.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mutex.c') diff --git a/mutex.c b/mutex.c index 72847d5..85fdab4 100644 --- a/mutex.c +++ b/mutex.c @@ -835,6 +835,10 @@ pthread_mutex_timedlock(pthread_mutex_t *mutex, const struct timespec *abstime) int result = 0; pthread_mutex_t mx; +#ifdef NEED_SEM + errno = ENOTSUP; + return -1; +#endif if (mutex == NULL || *mutex == NULL) { -- cgit v1.2.3