diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/dahdi/kernel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 09fa196..1d75245 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1177,10 +1177,12 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 31) #define KERN_CONT "" #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) -static inline int fatal_signal_pending(struct task_struct *p) -{ - return signal_pending(p) && sigismember(&p->pending.signal, SIGKILL); -} + +/* Some distributions backported fatal_signal_pending so we'll use a macro to + * override the inline functino definition. */ +#define fatal_signal_pending(p) \ + (signal_pending((p)) && sigismember(&(p)->pending.signal, SIGKILL)) + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 18) static inline void list_replace(struct list_head *old, struct list_head *new) { |