Browse Source

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 <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso 14 years ago
parent
commit
4c15dd5a77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libpthread/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S

+ 1 - 1
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