diff -Naurp glibc-2.7-orig/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S glibc-2.7/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S --- glibc-2.7-orig/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S 2007-11-24 17:32:53.000000000 +0100 +++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S 2007-11-24 17:07:07.000000000 +0100 @@ -134,12 +134,14 @@ __pthread_cond_timedwait: /* Only clocks 0 and 1 are allowed so far. Both are handled in the kernel. */ leaq 24(%rsp), %rsi +# ifdef SHARED movq __vdso_clock_gettime@GOTPCREL(%rip), %rax movq (%rax), %rax PTR_DEMANGLE (%rax) jz 26f call *%rax jmp 27f +# endif 26: movl $__NR_clock_gettime, %eax syscall 27: