From eef4a9f3e1ca45870649c2b133e2097c607770e3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 25 Jun 2003 03:22:03 +0000 Subject: * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Support cancellation in librt. * sysdeps/unix/sysv/linux/alpha/Makefile (libpthread-routines): --- linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'linuxthreads/sysdeps/unix/sysv') diff --git a/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h b/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h index e6d0cca252..e7f2704b63 100644 --- a/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h +++ b/linuxthreads/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h @@ -23,7 +23,7 @@ # include #endif -#if !defined NOT_IN_libc || defined IS_IN_libpthread +#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt # define _IMM12 #-12 # define _IMM16 #-16 @@ -92,10 +92,13 @@ # define __local_enable_asynccancel __pthread_enable_asynccancel # define __local_disable_asynccancel __pthread_disable_asynccancel # define __local_multiple_threads __pthread_multiple_threads -# else +# elif !defined NOT_IN_libc # define __local_enable_asynccancel __libc_enable_asynccancel # define __local_disable_asynccancel __libc_disable_asynccancel # define __local_multiple_threads __libc_multiple_threads +# else +# define __local_enable_asynccancel __librt_enable_asynccancel +# define __local_disable_asynccancel __librt_disable_asynccancel # endif # define CENABLE \ -- cgit v1.2.3