Browse Source

- remove a couple of duplicate includes

Bernhard Reutner-Fischer 15 years ago
parent
commit
1372e95c24

+ 1 - 3
ldso/libdl/libdl.c

@@ -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' */
-#include <string.h>
 char *_dl_debug  = 0;
 char *_dl_debug_symbols   = 0;
 char *_dl_debug_move      = 0;

+ 0 - 1
libc/misc/dirent/readdir64.c

@@ -6,7 +6,6 @@
 
 #include <_lfs_64.h>
 
-#include <dirent.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>

+ 0 - 1
libc/misc/dirent/readdir64_r.c

@@ -6,7 +6,6 @@
 
 #include <_lfs_64.h>
 
-#include <dirent.h>
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>

+ 0 - 1
libc/misc/time/time.c

@@ -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)
 {

+ 0 - 3
libc/misc/wchar/wchar.c

@@ -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 <string.h>
-#include <wchar.h>
 #include <iconv.h>
 #include <stdarg.h>
 #include <libgen.h>

+ 0 - 1
libc/stdlib/abort.c

@@ -19,7 +19,6 @@ Cambridge, MA 02139, USA.  */
 /* Hacked up for uClibc by Erik Andersen */
 
 #include <features.h>
-#include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

+ 0 - 1
libc/stdlib/getpt.c

@@ -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

+ 0 - 1
libc/sysdeps/linux/common/sched_getaffinity.c

@@ -25,7 +25,6 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <sys/types.h>
 
 /* Experimentally off - libc_hidden_proto(memset) */
 

+ 0 - 1
libc/sysdeps/linux/common/sched_setaffinity.c

@@ -28,7 +28,6 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
-#include <sys/types.h>
 #include <alloca.h>
 
 libc_hidden_proto(getpid)

+ 0 - 1
libc/sysdeps/linux/common/stat64.c

@@ -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,

+ 0 - 1
libc/sysdeps/linux/common/utimes.c

@@ -17,7 +17,6 @@ libc_hidden_proto(utimes)
 _syscall2(int, utimes, const char *, file, const struct timeval *, tvp);
 #else
 #include <stdlib.h>
-#include <sys/time.h>
 
 libc_hidden_proto(utime)
 

+ 0 - 3
libc/unistd/fpathconf.c

@@ -20,10 +20,7 @@
 #include <errno.h>
 #include <unistd.h>
 #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>

+ 0 - 1
libc/unistd/getpass.c

@@ -20,7 +20,6 @@
 #include <string.h>
 #include <termios.h>
 #include <unistd.h>
-#include <string.h>
 
 #if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
 

+ 0 - 1
test/misc/bug-readdir1.c

@@ -1,6 +1,5 @@
 #include <dirent.h>
 #include <errno.h>
-#include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>

+ 0 - 1
utils/ldd.c

@@ -22,7 +22,6 @@
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <sys/types.h>
 #include <sys/wait.h>
 
 #include "bswap.h"