From a6f23153a4b01b412cf7ef447e757a88fe1db904 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 8 Sep 2005 02:58:50 +0000 Subject: slight tweak to minimize diffs with glibc --- libpthread/linuxthreads/restart.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libpthread') diff --git a/libpthread/linuxthreads/restart.h b/libpthread/linuxthreads/restart.h index f72fb709f..687d92fae 100644 --- a/libpthread/linuxthreads/restart.h +++ b/libpthread/linuxthreads/restart.h @@ -14,13 +14,14 @@ #include #include +#define __ASSUME_REALTIME_SIGNALS defined(__NR_rt_sigaction) /* Primitives for controlling thread execution */ static inline void restart(pthread_descr th) { /* See pthread.c */ -#ifdef __NR_rt_sigaction +#if __ASSUME_REALTIME_SIGNALS __pthread_restart_new(th); #else __pthread_restart(th); @@ -30,7 +31,7 @@ static inline void restart(pthread_descr th) static inline void suspend(pthread_descr self) { /* See pthread.c */ -#ifdef __NR_rt_sigaction +#if __ASSUME_REALTIME_SIGNALS __pthread_wait_for_restart_signal(self); #else __pthread_suspend(self); @@ -41,7 +42,7 @@ static inline int timedsuspend(pthread_descr self, const struct timespec *abstime) { /* See pthread.c */ -#ifdef __NR_rt_sigaction +#if __ASSUME_REALTIME_SIGNALS return __pthread_timedsuspend_new(self, abstime); #else return __pthread_timedsuspend(self, abstime); -- cgit v1.2.3