From 45b21c5284179adc474a29157b7e943eafddfd00 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 29 Nov 2005 02:45:44 +0000 Subject: 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. --- libc/misc/internals/__uClibc_main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/misc') 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. * -- cgit v1.2.3