diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-03-24 14:55:57 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:33 +0200 |
commit | 6cd313691e522bc2188b05cbe949a57ca40a34f0 (patch) | |
tree | 3e4e6f51b808a1ad2fc99a5b453b5d663e3a85f4 | |
parent | fee403476315d999633aa064ce6f2c24abb193bf (diff) |
__uClibc_main.c: do not include unused headers
Remove unneeded headers.
Guard inclusion of fcntl.h.
While there, remove an obsoleted comment.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r-- | libc/misc/internals/__uClibc_main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index 9f7258d8a..f2290b32a 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -25,9 +25,9 @@ #include <errno.h> #include <netdb.h> #include <stdio.h> +#ifndef __ARCH_HAS_NO_LDSO__ #include <fcntl.h> -#include <sys/stat.h> -#include <sys/sysmacros.h> +#endif #ifdef __UCLIBC_HAS_THREADS_NATIVE__ #include <pthread-functions.h> #include <not-cancel.h> @@ -157,7 +157,6 @@ weak_alias (program_invocation_name, __progname_full) char **__environ = 0; weak_alias(__environ, environ) -/* TODO: don't export __pagesize; we cant now because libpthread uses it */ size_t __pagesize = 0; #ifndef O_NOFOLLOW |