svn commit: trunk/uClibc/libc/misc/internals
vapier at uclibc.org
vapier at uclibc.org
Tue Nov 29 02:45:45 UTC 2005
Author: vapier
Date: 2005-11-28 18:45:44 -0800 (Mon, 28 Nov 2005)
New Revision: 12564
Log:
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.
Modified:
trunk/uClibc/libc/misc/internals/__uClibc_main.c
Changeset:
Modified: trunk/uClibc/libc/misc/internals/__uClibc_main.c
===================================================================
--- trunk/uClibc/libc/misc/internals/__uClibc_main.c 2005-11-29 02:42:52 UTC (rev 12563)
+++ trunk/uClibc/libc/misc/internals/__uClibc_main.c 2005-11-29 02:45:44 UTC (rev 12564)
@@ -82,6 +82,7 @@
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 @@
}
return 1;
}
+#endif
/* __uClibc_init completely initialize uClibc so it is ready to use.
*
More information about the uClibc-cvs
mailing list