summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--sysdeps/generic/pt-condattr-setclock.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8ef990e..2f45c1c 100644
--- a/Makefile
+++ b/Makefile
@@ -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;
}