From 4c15dd5a77e2df399ea3c4e6818cad4df42c0219 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Fri, 19 Feb 2010 16:32:22 +0100 Subject: nptl_sh: Fix build problem with FUTEX_CLOCK_REALTIME This patch fixes a build problem into the lowlevellock.S when support FUTEX_CLOCK_REALTIME (kernel newer than 2.6.29). __have_futex_clock_realtime symbol is not defined when set __ASSUME_FUTEX_CLOCK_REALTIME. The same is on i386 arch. Signed-off-by: Giuseppe Cavallaro Signed-off-by: Carmelo Amoroso --- libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpthread') diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S index 25c75c54a..00edc75a7 100644 --- a/libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S +++ b/libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S @@ -284,6 +284,7 @@ __lll_timedlock_wait: mov.l @r15+, r12 .align 2 +# ifndef __ASSUME_FUTEX_CLOCK_REALTIME # ifdef __PIC__ .Lgot: .long _GLOBAL_OFFSET_TABLE_ @@ -294,7 +295,6 @@ __lll_timedlock_wait: .long __have_futex_clock_realtime # endif -# ifndef __ASSUME_FUTEX_CLOCK_REALTIME .Lreltmo: /* Check for a valid timeout value. */ mov.l @(4,r6), r1 -- cgit v1.2.3