summaryrefslogtreecommitdiff
path: root/wctdm24xxp/wctdm24xxp.h
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 18:40:23 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-08-21 18:40:23 +0000
commit0c9ef5638b491cea7d32b722d6e224fc696fdbbf (patch)
tree88f759b5fd6cfe5ecc81cb058bfb91a4fcc42555 /wctdm24xxp/wctdm24xxp.h
parentdc9e73cd3205822dbd0c6c3d9b11f687281aa638 (diff)
Allow wctdm24xxp to compile on a 2.4 based kernel
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@2923 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wctdm24xxp/wctdm24xxp.h')
-rw-r--r--wctdm24xxp/wctdm24xxp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wctdm24xxp/wctdm24xxp.h b/wctdm24xxp/wctdm24xxp.h
index dff0b38..89d708e 100644
--- a/wctdm24xxp/wctdm24xxp.h
+++ b/wctdm24xxp/wctdm24xxp.h
@@ -87,6 +87,10 @@
#define VPM_SUPPORT
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
+#define VPM150M_SUPPORT
+#endif
+
#ifdef VPM_SUPPORT
/* Define to get more attention-grabbing but slightly more CPU using echocan status */
@@ -103,8 +107,10 @@ struct vpm150m_cmd {
};
struct vpm150m {
+#ifdef VPM150M_SUPPORT
struct workqueue_struct *wq;
struct work_struct work;
+#endif
struct wctdm *wc;
int dspid;