patch-2.0.16 linux/net/core/net_alias.c

Next file: linux/net/ipv4/tcp_output.c
Previous file: linux/kernel/sched.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.15/linux/net/core/net_alias.c linux/net/core/net_alias.c
@@ -1298,6 +1298,7 @@
    */
   
 #ifndef ALIAS_USER_LAND_DEBUG
+#ifdef CONFIG_PROC_FS
   proc_net_register(&(struct proc_dir_entry) {
     PROC_NET_ALIAS_TYPES, 11, "alias_types",
     S_IFREG | S_IRUGO, 1, 0, 0,
@@ -1310,6 +1311,7 @@
     0, &proc_net_inode_operations,
     net_alias_getinfo
   });
+#endif
 #endif
   
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov