compile fix for kernels < 3.0.0

origin/mr3.2
Richard Fuchs 12 years ago
parent 843a7c8572
commit ef7e5bb4f7

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