diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
commit | 78c388aed2b7184182c08428db1de6c872d815f5 (patch) | |
tree | 4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /net/wanrouter | |
parent | eb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff) |
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'net/wanrouter')
-rw-r--r-- | net/wanrouter/wanproc.c | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/net/wanrouter/wanproc.c b/net/wanrouter/wanproc.c index f92f87e1f..9aa0c3485 100644 --- a/net/wanrouter/wanproc.c +++ b/net/wanrouter/wanproc.c @@ -19,6 +19,7 @@ * Dec 13, 1996 Gene Kozin Initial version (based on Sangoma's WANPIPE) *****************************************************************************/ +#include <linux/config.h> #include <linux/stddef.h> /* offsetof(), etc. */ #include <linux/errno.h> /* return codes */ #include <linux/kernel.h> @@ -56,6 +57,8 @@ typedef struct wan_stat_entry /****** Function Prototypes *************************************************/ +#ifdef CONFIG_PROC_FS + /* Proc filesystem interface */ static int router_proc_perms(struct inode *, int); static ssize_t router_proc_read(struct file* file, char* buf, size_t count, loff_t *ppos); @@ -176,7 +179,7 @@ static struct inode_operations wandev_inode = /* * /proc/net/router */ - + static struct proc_dir_entry proc_router = { 0, /* .low_ino */ @@ -528,3 +531,30 @@ static int wandev_get_info(char* buf, char** start, off_t offs, int len, * End */ +#else + +/* + * No /proc - output stubs + */ + +__initfunc(int wanrouter_proc_init(void)) +{ + return 0; +} + +void wanrouter_proc_cleanup(void) +{ + return; +} + +int wanrouter_proc_add(wan_device_t *wandev) +{ + return 0; +} + +int wanrouter_proc_delete(wan_device_t *wandev) +{ + return 0; +} + +#endif |