Support cancellation in librt.
[kopensolaris-gnu/glibc.git] / linuxthreads / sysdeps / unix / sysv / linux / powerpc / powerpc32 / sysdep-cancel.h
index 2d191d1..b5d0665 100644 (file)
@@ -23,7 +23,7 @@
 # include <linuxthreads/internals.h>
 #endif
 
-#if !defined NOT_IN_libc || defined IS_IN_libpthread
+#if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
 
 # undef PSEUDO
 # define PSEUDO(name, syscall_name, args)                              \
 # ifdef IS_IN_libpthread
 #  define CENABLE      bl JUMPTARGET(__pthread_enable_asynccancel)
 #  define CDISABLE     bl JUMPTARGET(__pthread_disable_asynccancel)
-# else
+# elif !defined NOT_IN_libc
 #  define CENABLE      bl JUMPTARGET(__libc_enable_asynccancel)
 #  define CDISABLE     bl JUMPTARGET(__libc_disable_asynccancel)
+# else
+#  define CENABLE      bl JUMPTARGET(__librt_enable_asynccancel)
+#  define CDISABLE     bl JUMPTARGET(__librt_disable_asynccancel)
 # endif
 
 # ifndef __ASSEMBLER__