summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
authorcitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-03-26 07:44:19 +0000
committercitats <citats@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-03-26 07:44:19 +0000
commit4745aa699577fd67b8dee156acea7cf81a91c323 (patch)
tree23509299ff1a1b5f06bdba8821eedb5c009fca88 /zaptel.h
parentc363d08e46a37c3a4b3453de3109316673831f21 (diff)
Change zaptel to not use DEVFS on 2.6 kernels
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@332 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.h')
-rwxr-xr-xzaptel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/zaptel.h b/zaptel.h
index cf4ea40..2748037 100755
--- a/zaptel.h
+++ b/zaptel.h
@@ -48,7 +48,12 @@
#include "fasthdlc.h"
#endif
#ifdef CONFIG_DEVFS_FS
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
#include <linux/devfs_fs_kernel.h>
+#else
+#undef CONFIG_DEVFS_FS
+#warning "Zaptel doesn't support DEVFS in post 2.4 kernels. Disabling DEVFS in zaptel"
+#endif
#endif /* CONFIG_DEVFS_FS */
#include <linux/ioctl.h>