diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-11-29 02:45:44 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-11-29 02:45:44 +0000 |
commit | 45b21c5284179adc474a29157b7e943eafddfd00 (patch) | |
tree | 108a7abe7075691cde1d3b68fc5cd210ae6cbad4 /libc/misc | |
parent | ccfb27c19e4c2aab4db77ff1092ed9f5a1f065a6 (diff) |
Paul Brook writes:
The functions __check_one_fd and __check_suid in
libc/misc/internals/__uClibc_main.c are only used used when __ARCH_HAS_MMU__.
The patch below surrounds them with the appropriate #ifdef.
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/internals/__uClibc_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 2db8b078a..48b3b6e7d 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -82,6 +82,7 @@ const char *__progname = 0; extern int __libc_fcntl(int fd, int cmd, ...); extern int __libc_open(const char *file, int flags, ...); +#ifdef __ARCH_HAS_MMU__ static void __check_one_fd(int fd, int mode) { /* Check if the specified fd is already open */ @@ -119,6 +120,7 @@ static int __check_suid(void) } return 1; } +#endif /* __uClibc_init completely initialize uClibc so it is ready to use. * |