From ec450c4b3fa9c48c6eb38064684d1d0a040dea0b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 25 Aug 2004 05:55:35 +0000 Subject: (CENABLE, CDISABLE, __local_multiple_threads): Fix definitions for IS_IN_librt. 2004-08-25 Richard Sandiford * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (CENABLE, CDISABLE, __local_multiple_threads): Fix definitions for IS_IN_librt. * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise. --- linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h') diff --git a/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h index db30c96c24..1fff782397 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/mips/sysdep-cancel.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Guido Guenther , 2003. @@ -118,18 +118,16 @@ # define CENABLE la t9, __pthread_enable_asynccancel; jalr t9; # define CDISABLE la t9, __pthread_disable_asynccancel; jalr t9; # define __local_multiple_threads __pthread_multiple_threads +# elif defined IS_IN_librt +# define CENABLE la t9, __librt_enable_asynccancel; jalr t9; +# define CDISABLE la t9, __librt_disable_asynccancel; jalr t9; +# define __local_multiple_threads __librt_multiple_threads # else # define CENABLE la t9, __libc_enable_asynccancel; jalr t9; # define CDISABLE la t9, __libc_disable_asynccancel; jalr t9; # define __local_multiple_threads __libc_multiple_threads # endif -# if !defined NOT_IN_libc -# define __local_multiple_threads __libc_multiple_threads -# else -# define __local_multiple_threads __pthread_multiple_threads -# endif - # ifndef __ASSEMBLER__ extern int __local_multiple_threads attribute_hidden; # define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1) -- cgit v1.2.3-70-g09d2