[zaptel-commits] kpfleming: branch 1.2 r2060 - /branches/1.2/wctc4xxp/base.c

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Wed Jan 31 12:12:11 MST 2007


Author: kpfleming
Date: Wed Jan 31 13:12:10 2007
New Revision: 2060

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2060
Log:
add compatibility for kernels pre-2.6.10

Modified:
    branches/1.2/wctc4xxp/base.c

Modified: branches/1.2/wctc4xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctc4xxp/base.c?view=diff&rev=2060&r1=2059&r2=2060
==============================================================================
--- branches/1.2/wctc4xxp/base.c (original)
+++ branches/1.2/wctc4xxp/base.c Wed Jan 31 13:12:10 2007
@@ -1688,7 +1688,11 @@
 }
 
 module_param(debug, int, S_IRUGO | S_IWUSR);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,10)
 module_param_array(mode, charp, &mode_count, S_IRUGO | S_IWUSR);
+#else
+module_param_array(mode, charp, mode_count, S_IRUGO | S_IWUSR);
+#endif
 module_param(debug_packets, uint, S_IRUGO | S_IWUSR);
 module_param(debug_cmd_packets, uint, S_IRUGO | S_IWUSR);
 MODULE_DESCRIPTION("Wildcard TC400P+TC400M Transcoder");



More information about the zaptel-commits mailing list