diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h index c404926..3f14727 100644 --- a/include/dahdi/kernel.h +++ b/include/dahdi/kernel.h @@ -1404,18 +1404,18 @@ static inline short dahdi_txtone_nextsample(struct dahdi_chan *ss) /*! Maximum audio mask */ #define DAHDI_FORMAT_AUDIO_MASK ((1 << 16) - 1) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) #ifdef RHEL_RELEASE_VERSION -# if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6, 5) -# ifdef CONFIG_PROC_FS +#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(6, 5) +#ifdef CONFIG_PROC_FS #include static inline void *PDE_DATA(const struct inode *inode) { return PDE(inode)->data; } -# endif -# endif +#endif +#endif #else -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) #ifdef CONFIG_PROC_FS #include static inline void *PDE_DATA(const struct inode *inode)