diff options
Diffstat (limited to 'zaptel.h')
-rwxr-xr-x | zaptel.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -31,7 +31,9 @@ #define _LINUX_ZAPTEL_H #ifdef __KERNEL__ +#include "zconfig.h" #include <linux/config.h> +#include <linux/version.h> #ifdef CONFIG_ZAPATA_NET #include <linux/hdlc.h> #endif @@ -1369,6 +1371,11 @@ static inline short zt_txtone_nextsample(struct zt_chan *ss) #define ZT_LIN2X(a,c) ((c)->lin2x[((unsigned short)(a)) >> 2]) #endif /* CONFIG_CALC_XLAW */ + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) +#define LINUX26 +#endif + #endif /* __KERNEL__ */ #endif /* _LINUX_ZAPTEL_H */ |