diff options
Diffstat (limited to 'include/dahdi/kernel.h')
-rw-r--r-- | include/dahdi/kernel.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index 22fc3ee..ef71459 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1209,6 +1209,7 @@ static inline void list_replace(struct list_head *old, struct list_head *new) #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) #define synchronize_rcu() synchronize_kernel() #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 11) +#if !defined(HAVE_WAIT_FOR_COMPLETION_TIMEOUT) static inline unsigned long wait_for_completion_timeout(struct completion *x, unsigned long timeout) { @@ -1221,6 +1222,7 @@ wait_for_completion_timeout(struct completion *x, unsigned long timeout) return timeout; } +#endif #endif /* 2.6.11 */ #endif /* 2.6.12 */ #endif /* 2.6.14 */ |