@@ -32,7 +32,7 @@
#include <ldso.h>
#include <stdio.h>
-#include <string.h>
+#include <string.h> /* Needed for 'strstr' prototype' */
#include <stdbool.h>
@@ -77,8 +77,6 @@ extern char *_dl_debug;
* the symbols that otherwise would have been loaded in from ldso... */
#ifdef __SUPPORT_LD_DEBUG__
-/* Needed for 'strstr' prototype' */
char *_dl_debug = 0;
char *_dl_debug_symbols = 0;
char *_dl_debug_move = 0;
@@ -6,7 +6,6 @@
#include <_lfs_64.h>
-#include <dirent.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
@@ -2088,7 +2088,6 @@ libc_hidden_def(tzset)
#endif
#include <utime.h>
-#include <sys/time.h>
int utimes(const char *filename, register const struct timeval *tvp)
{
@@ -1564,10 +1564,7 @@ size_t weak_function iconv(iconv_t cd, char **__restrict inbuf,
/**********************************************************************/
#ifdef L_iconv_main
-#include <stdio.h>
-#include <stdlib.h>
-#include <wchar.h>
#include <iconv.h>
#include <stdarg.h>
#include <libgen.h>
@@ -19,7 +19,6 @@ Cambridge, MA 02139, USA. */
/* Hacked up for uClibc by Erik Andersen */
#include <features.h>
-#include <signal.h>
@@ -32,7 +32,6 @@ libc_hidden_proto(open)
libc_hidden_proto(close)
#if !defined __ASSUME_DEVPTS__
-# include <sys/statfs.h>
/* Constant that identifies the `devpts' filesystem. */
# define DEVPTS_SUPER_MAGIC 0x1cd1
@@ -25,7 +25,6 @@
#include <sys/param.h>
-#include <sys/types.h>
/* Experimentally off - libc_hidden_proto(memset) */
@@ -28,7 +28,6 @@
#include <unistd.h>
#include <alloca.h>
libc_hidden_proto(getpid)
@@ -15,7 +15,6 @@ libc_hidden_proto(stat64)
# define __NR___syscall_stat64 __NR_stat64
# include <unistd.h>
-# include <sys/stat.h>
# include "xstatconv.h"
static __inline__ _syscall2(int, __syscall_stat64,
@@ -17,7 +17,6 @@ libc_hidden_proto(utimes)
_syscall2(int, utimes, const char *, file, const struct timeval *, tvp);
#else
libc_hidden_proto(utime)
@@ -20,10 +20,7 @@
#include <limits.h>
-#include <sys/statfs.h>
-#include <errno.h>
#include <stddef.h>
-#include <limits.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/statfs.h>
@@ -20,7 +20,6 @@
#include <termios.h>
#if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
@@ -1,6 +1,5 @@
#include <dirent.h>
@@ -22,7 +22,6 @@
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "bswap.h"