diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-02-24 04:04:36 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-24 04:04:36 -0800 |
| commit | a4580ad908e8a6d2217e3c5805f50dd533b3e68d (patch) | |
| tree | f6c70b63ebe23288248376255b1c80e135415207 /include/linux | |
| parent | 0bf8f70ab047ddb758be2fb450832ad8af636510 (diff) | |
[PATCH] fix the build with CONFIG_UNIX98_PTYS=n
From: Ian Wienand <ianw@gelato.unsw.edu.au>
- Fix inline function declarations
- Use #ifdef for CONFIG_*, not #if
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/devpts_fs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/devpts_fs.h b/include/linux/devpts_fs.h index 734f7ea9e835..b672ddc00735 100644 --- a/include/linux/devpts_fs.h +++ b/include/linux/devpts_fs.h @@ -11,22 +11,22 @@ * ------------------------------------------------------------------------- */ #ifndef _LINUX_DEVPTS_FS_H -#define _LINUX_DEVPTS_FS_H 1 +#define _LINUX_DEVPTS_FS_H #include <linux/errno.h> -#if CONFIG_UNIX98_PTYS +#ifdef CONFIG_UNIX98_PTYS -int devpts_pty_new(struct tty_struct *); /* mknod in devpts */ -struct tty_struct *devpts_get_tty(int); /* get tty structure */ -void devpts_pty_kill(int); /* unlink */ +int devpts_pty_new(struct tty_struct *tty); /* mknod in devpts */ +struct tty_struct *devpts_get_tty(int number); /* get tty structure */ +void devpts_pty_kill(int number); /* unlink */ #else /* Dummy stubs in the no-pty case */ -static inline int devpts_pty_new(struct tty_struct *) { return -EINVAL; } -static inline struct tty_struct *devpts_get_tty(int) { return NULL; } -static inline void devpts_pty_kill(int) { } +static inline int devpts_pty_new(struct tty_struct *tty) { return -EINVAL; } +static inline struct tty_struct *devpts_get_tty(int number) { return NULL; } +static inline void devpts_pty_kill(int number) { } #endif |
