Browse Source

compile fix for kernels < 3.0.0

git.mgm/mediaproxy-ng/origin/mr3.2
Richard Fuchs 12 years ago
parent
commit
ef7e5bb4f7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      kernel-module/xt_MEDIAPROXY.c

+ 4
- 0
kernel-module/xt_MEDIAPROXY.c View File

@ -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;


Loading…
Cancel
Save