diff options
| author | drochner <drochner@NetBSD.org> | 2010-03-23 20:35:44 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2010-03-23 20:35:44 +0000 |
| commit | 1982972a07a991575102ac61431b11e819a7c7fd (patch) | |
| tree | 3a1b01c58eb1a7d975d668474d9d19e5b22da018 /lib/libpthread | |
| parent | 71380b75fd58e3b9444714d58d4890117a6bedae (diff) | |
catch up with the __RENAME of nanosleep(2) a while ago, otherwise we
get the compatibility function which assumes a different struct timespec
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_cond.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/pthread_cond.c b/lib/libpthread/pthread_cond.c index 0a7cd043947..e2ee1f0260e 100644 --- a/lib/libpthread/pthread_cond.c +++ b/lib/libpthread/pthread_cond.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_cond.c,v 1.54 2009/01/18 12:14:17 lukem Exp $ */ +/* $NetBSD: pthread_cond.c,v 1.55 2010/03/23 20:35:44 drochner Exp $ */ /*- * Copyright (c) 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -46,7 +46,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: pthread_cond.c,v 1.54 2009/01/18 12:14:17 lukem Exp $"); +__RCSID("$NetBSD: pthread_cond.c,v 1.55 2010/03/23 20:35:44 drochner Exp $"); #include <errno.h> #include <sys/time.h> @@ -55,7 +55,7 @@ __RCSID("$NetBSD: pthread_cond.c,v 1.54 2009/01/18 12:14:17 lukem Exp $"); #include "pthread.h" #include "pthread_int.h" -int _sys_nanosleep(const struct timespec *, struct timespec *); +int _sys___nanosleep50(const struct timespec *, struct timespec *); extern int pthread__started; @@ -356,7 +356,7 @@ pthread_cond_wait_nothread(pthread_t self, pthread_mutex_t *mutex, do { pthread__testcancel(self); pthread_mutex_unlock(mutex); - retval = _sys_nanosleep(&diff, NULL); + retval = _sys___nanosleep50(&diff, NULL); pthread_mutex_lock(mutex); } while (abstime == NULL && retval == 0); pthread__testcancel(self); |
