summaryrefslogtreecommitdiff
path: root/zaptel.h
diff options
context:
space:
mode:
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>