diff --git a/kernel-module/xt_MEDIAPROXY.c b/kernel-module/xt_MEDIAPROXY.c index 01104e8d7..e3671fb82 100644 --- a/kernel-module/xt_MEDIAPROXY.c +++ b/kernel-module/xt_MEDIAPROXY.c @@ -352,7 +352,11 @@ static int table_create_proc(struct mediaproxy_table *t, u_int32_t id) { sprintf(num, "%u", id); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) + t->proc = create_proc_entry(num, S_IFDIR | S_IRUGO | S_IXUGO, my_proc_root); +#else t->proc = proc_mkdir_mode(num, S_IRUGO | S_IXUGO, my_proc_root); +#endif if (!t->proc) return -1;