summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index c153171..a45b561 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -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 */