summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-23 16:06:34 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-23 16:06:34 +0000
commit21ceae197e2c8654bdbebaac6a41bcd189df4ec3 (patch)
treed885667adbd3c67d7842a9ac376a40e3c0ea68f0
parent7b5700771373c3487306cf2054501448769c6160 (diff)
Guard hidden prototypes accordingly
-rw-r--r--libc/misc/internals/__uClibc_main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index 190263b28..e4e0225e8 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -28,20 +28,25 @@
#include <sys/stat.h>
#include <sys/sysmacros.h>
-libc_hidden_proto(memcpy)
+libc_hidden_proto(exit)
+
+#ifdef __UCLIBC_HAS_PROGRAM_INVOCATION_NAME__
libc_hidden_proto(strrchr)
+#endif
+#ifdef __ARCH_HAS_MMU__
+libc_hidden_proto(memcpy)
libc_hidden_proto(getgid)
libc_hidden_proto(getuid)
libc_hidden_proto(getegid)
libc_hidden_proto(geteuid)
libc_hidden_proto(fstat)
libc_hidden_proto(abort)
-libc_hidden_proto(exit)
extern __typeof(open) __libc_open;
libc_hidden_proto(__libc_open)
extern __typeof(fcntl) __libc_fcntl;
libc_hidden_proto(__libc_fcntl)
+#endif
#ifndef SHARED
void *__libc_stack_end=NULL;