diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | sysdeps/generic/pt-condattr-setclock.c | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -216,10 +216,8 @@ VPATH += $(SYSDEP_PATH) ifeq ($(IN_GLIBC),no) HURDLIBS = ihash -LDLIBS = -lrt else LDLIBS-pthread.so = -lihash -$(objpfx)libpthread.so: $(common-objpfx)rt/librt.so endif ifeq ($(IN_GLIBC),no) diff --git a/sysdeps/generic/pt-condattr-setclock.c b/sysdeps/generic/pt-condattr-setclock.c index c5a78ef..c8ac4ce 100644 --- a/sysdeps/generic/pt-condattr-setclock.c +++ b/sysdeps/generic/pt-condattr-setclock.c @@ -35,7 +35,7 @@ pthread_condattr_setclock (pthread_condattr_t *attr, clockid_t clock) struct timespec ts; int res; - res = clock_getres (CLOCK_MONOTONIC, &ts); + res = clock_gettime (CLOCK_MONOTONIC, &ts); avail = res < 0 ? -1 : 1; } |