patch-2.2.14 linux/drivers/net/hamradio/yam.c
Next file: linux/drivers/net/hscx.h
Previous file: linux/drivers/net/hamradio/Config.in
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Jan 4 10:12:17 2000
- Orig file:
v2.2.13/linux/drivers/net/hamradio/yam.c
- Orig date:
Mon Aug 9 16:05:56 1999
diff -u --recursive --new-file v2.2.13/linux/drivers/net/hamradio/yam.c linux/drivers/net/hamradio/yam.c
@@ -894,10 +894,12 @@
}
#ifdef CONFIG_INET
+
#ifndef PROC_NET_YAM
#define PROC_NET_YAM (PROC_NET_LAST+10) /* Sorry again... */
#endif
+#ifdef CONFIG_PROC_FS
struct proc_dir_entry yam_proc_dir_entry =
{
PROC_NET_YAM, 3, "yam", S_IFREG | S_IRUGO, 1, 0, 0, 0,
@@ -906,6 +908,10 @@
#define yam_net_procfs_init() proc_net_register(&yam_proc_dir_entry);
#define yam_net_procfs_remove() proc_net_unregister(PROC_NET_YAM);
+#else
+#define yam_net_procfs_init()
+#define yam_net_procfs_remove()
+#endif
#else
#define yam_net_procfs_init()
#define yam_net_procfs_remove()
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)