aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/date.c1
-rw-r--r--coreutils/dos2unix.c1
-rw-r--r--coreutils/nice.c1
-rw-r--r--e2fsprogs/e2fsck.h1
-rw-r--r--e2fsprogs/ext2fs/bmove.c1
-rw-r--r--e2fsprogs/uuid/gen_uuid.c1
-rw-r--r--e2fsprogs/uuid/uuid.h1
-rw-r--r--e2fsprogs/uuid/uuid_time.c1
-rw-r--r--editors/vi.c1
-rw-r--r--include/libbb.h2
-rw-r--r--init/init.c1
-rw-r--r--loginutils/login.c1
-rw-r--r--loginutils/su.c1
-rw-r--r--loginutils/sulogin.c1
-rw-r--r--miscutils/adjtimex.c1
-rw-r--r--miscutils/devfsd.c1
-rw-r--r--miscutils/hdparm.c1
-rw-r--r--miscutils/time.c1
-rw-r--r--networking/arping.c1
-rw-r--r--networking/fakeidentd.c1
-rw-r--r--networking/ftpgetput.c1
-rw-r--r--networking/httpd.c1
-rw-r--r--networking/inetd.c1
-rw-r--r--networking/nc.c1
-rw-r--r--networking/ping.c1
-rw-r--r--networking/ping6.c1
-rw-r--r--networking/telnet.c7
-rw-r--r--networking/telnetd.c1
-rw-r--r--networking/tftp.c1
-rw-r--r--networking/traceroute.c1
-rw-r--r--networking/udhcp/arpping.c1
-rw-r--r--networking/udhcp/dhcpc.c1
-rw-r--r--networking/udhcp/dhcpd.c1
-rw-r--r--networking/wget.c1
-rw-r--r--networking/zcip.c1
-rw-r--r--procps/renice.c1
-rw-r--r--procps/top.c2
-rw-r--r--shell/ash.c1
-rw-r--r--util-linux/hwclock.c1
-rw-r--r--util-linux/rdate.c1
40 files changed, 2 insertions, 46 deletions
diff --git a/coreutils/date.c b/coreutils/date.c
index 401d2ffb7..a922eb96c 100644
--- a/coreutils/date.c
+++ b/coreutils/date.c
@@ -11,7 +11,6 @@
#include <stdlib.h>
#include <errno.h>
-#include <sys/time.h>
#include <unistd.h>
#include <time.h>
#include <stdio.h>
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index c5021f9d0..cf98c4fed 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -15,7 +15,6 @@
#include <unistd.h>
#include <stdint.h>
#include <fcntl.h>
-#include <sys/time.h>
#include "busybox.h"
#define CT_UNIX2DOS 1
diff --git a/coreutils/nice.c b/coreutils/nice.c
index 449184dab..e8cee6cef 100644
--- a/coreutils/nice.c
+++ b/coreutils/nice.c
@@ -26,7 +26,6 @@
#include <limits.h>
#include <errno.h>
#include <unistd.h>
-#include <sys/time.h>
#include <sys/resource.h>
#include "busybox.h"
diff --git a/e2fsprogs/e2fsck.h b/e2fsprogs/e2fsck.h
index 43080d24e..b480d8fa5 100644
--- a/e2fsprogs/e2fsck.h
+++ b/e2fsprogs/e2fsck.h
@@ -14,7 +14,6 @@
#include <stddef.h>
#include <assert.h>
#include <signal.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <sys/resource.h>
#include <sys/param.h>
diff --git a/e2fsprogs/ext2fs/bmove.c b/e2fsprogs/ext2fs/bmove.c
index afc271022..8db905164 100644
--- a/e2fsprogs/ext2fs/bmove.c
+++ b/e2fsprogs/ext2fs/bmove.c
@@ -14,7 +14,6 @@
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#include <sys/time.h>
#include "ext2_fs.h"
#include "ext2fsP.h"
diff --git a/e2fsprogs/uuid/gen_uuid.c b/e2fsprogs/uuid/gen_uuid.c
index d84777498..24eb852ef 100644
--- a/e2fsprogs/uuid/gen_uuid.c
+++ b/e2fsprogs/uuid/gen_uuid.c
@@ -38,7 +38,6 @@
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <sys/file.h>
#ifdef HAVE_SYS_IOCTL_H
diff --git a/e2fsprogs/uuid/uuid.h b/e2fsprogs/uuid/uuid.h
index cd97a5e78..95602c9db 100644
--- a/e2fsprogs/uuid/uuid.h
+++ b/e2fsprogs/uuid/uuid.h
@@ -36,7 +36,6 @@
#define _UUID_UUID_H
#include <sys/types.h>
-#include <sys/time.h>
#include <time.h>
typedef unsigned char uuid_t[16];
diff --git a/e2fsprogs/uuid/uuid_time.c b/e2fsprogs/uuid/uuid_time.c
index 9ff3607d8..51f87de22 100644
--- a/e2fsprogs/uuid/uuid_time.c
+++ b/e2fsprogs/uuid/uuid_time.c
@@ -38,7 +38,6 @@
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/time.h>
#include <time.h>
#include "uuidP.h"
diff --git a/editors/vi.c b/editors/vi.c
index 7d5497830..1e8f3835d 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -57,7 +57,6 @@
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
diff --git a/include/libbb.h b/include/libbb.h
index 3bb663bb5..fdb20227d 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -24,6 +24,8 @@
#include <netinet/in.h>
#include <netdb.h>
+#include <sys/time.h>
+
#include "bb_config.h"
#ifdef CONFIG_SELINUX
#include <selinux/selinux.h>
diff --git a/init/init.c b/init/init.c
index b0443d095..ec3c4d7cf 100644
--- a/init/init.c
+++ b/init/init.c
@@ -91,7 +91,6 @@ struct serial_struct {
*/
#define CORE_ENABLE_FLAG_FILE "/.init_enable_core"
#include <sys/resource.h>
-#include <sys/time.h>
#endif
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
diff --git a/loginutils/login.c b/loginutils/login.c
index b1367327b..46c4ade56 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -10,7 +10,6 @@
#include <utmp.h>
#include <sys/resource.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <time.h>
diff --git a/loginutils/su.c b/loginutils/su.c
index b0227787a..a6fcd739f 100644
--- a/loginutils/su.c
+++ b/loginutils/su.c
@@ -14,7 +14,6 @@
#include <utmp.h>
#include <sys/resource.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <time.h>
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 8c5d88a62..66f8f0160 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -9,7 +9,6 @@
#include <utmp.h>
#include <sys/resource.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <ctype.h>
#include <time.h>
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index 4a242cfb7..b5e87ba6e 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -44,7 +44,6 @@
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
-#include <sys/time.h>
#include <sys/timex.h>
#include "busybox.h"
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index f99a94628..aa682dc0d 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -57,7 +57,6 @@
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 6a8149841..7511f35a3 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -20,7 +20,6 @@
#include <endian.h>
#include <sys/ioctl.h>
#include <sys/sysmacros.h>
-#include <sys/time.h>
#include <sys/times.h>
#include <sys/mount.h>
#include <sys/mman.h>
diff --git a/miscutils/time.c b/miscutils/time.c
index 89c48547a..0a2fb7748 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -29,7 +29,6 @@
#include <string.h>
#include <limits.h>
#include <unistd.h>
-#include <sys/time.h>
#include <sys/types.h> /* For pid_t. */
#include <sys/wait.h>
#include <sys/param.h> /* For getpagesize, maybe. */
diff --git a/networking/arping.c b/networking/arping.c
index 303e49935..e12fa508b 100644
--- a/networking/arping.c
+++ b/networking/arping.c
@@ -10,7 +10,6 @@
#include <sys/ioctl.h>
#include <signal.h>
-#include <sys/time.h>
#include <errno.h>
#include <stdlib.h>
diff --git a/networking/fakeidentd.c b/networking/fakeidentd.c
index cae6b8138..d3aa3ce5d 100644
--- a/networking/fakeidentd.c
+++ b/networking/fakeidentd.c
@@ -23,7 +23,6 @@
#include <sys/syslog.h>
#include <sys/types.h>
-#include <sys/time.h>
#include <time.h>
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index a401ec50a..48b18b536 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -15,7 +15,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <ctype.h>
diff --git a/networking/httpd.c b/networking/httpd.c
index 1d8c893f2..4cd09448c 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -99,7 +99,6 @@
#include <sys/types.h>
#include <sys/socket.h> /* for connect and socket*/
#include <netinet/in.h> /* for sockaddr_in */
-#include <sys/time.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h> /* for open modes */
diff --git a/networking/inetd.c b/networking/inetd.c
index 39a2b24cb..3ecd32292 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -134,7 +134,6 @@
#include <sys/un.h>
#include <sys/file.h>
#include <sys/wait.h>
-#include <sys/time.h>
#include <sys/resource.h>
diff --git a/networking/nc.c b/networking/nc.c
index 637e97572..24f1aa5a5 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -24,7 +24,6 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
-#include <sys/time.h>
#include <sys/ioctl.h>
#include "busybox.h"
diff --git a/networking/ping.c b/networking/ping.c
index 7fe52ab39..d9d76bf34 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -15,7 +15,6 @@
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
-#include <sys/time.h>
#include <sys/times.h>
#include <signal.h>
diff --git a/networking/ping6.c b/networking/ping6.c
index 3f632e060..1cff59d4b 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -37,7 +37,6 @@
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
-#include <sys/time.h>
#include <sys/times.h>
#include <signal.h>
diff --git a/networking/telnet.c b/networking/telnet.c
index b3045f878..c835c7a45 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -45,13 +45,6 @@ enum { DOTRACE = 1 };
#define TRACE(x, y)
#endif
-#if 0
-#define USE_POLL
-#include <sys/poll.h>
-#else
-#include <sys/time.h>
-#endif
-
#define DATABUFSIZE 128
#define IACBUFSIZE 128
diff --git a/networking/telnetd.c b/networking/telnetd.c
index d51560bfb..5a11ffb8c 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -24,7 +24,6 @@
/*#define DEBUG 1 */
#undef DEBUG
-#include <sys/time.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
diff --git a/networking/tftp.c b/networking/tftp.c
index b830f18a5..bdba16727 100644
--- a/networking/tftp.c
+++ b/networking/tftp.c
@@ -24,7 +24,6 @@
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/time.h>
#include <sys/stat.h>
#include <netdb.h>
#include <netinet/in.h>
diff --git a/networking/traceroute.c b/networking/traceroute.c
index e0f17a57f..190f19ddc 100644
--- a/networking/traceroute.c
+++ b/networking/traceroute.c
@@ -218,7 +218,6 @@
#include <sys/file.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
-#include <sys/time.h> /* concession to AIX */
#include <sys/select.h>
#include "inet_common.h"
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index df626f159..b029af9bf 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -5,7 +5,6 @@
* by Yoichi Hariguchi <yoichi@fore.com>
*/
-#include <sys/time.h>
#include <time.h>
#include <sys/socket.h>
#include <netinet/if_ether.h>
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c
index 222bd6519..1d9ab6db6 100644
--- a/networking/udhcp/dhcpc.c
+++ b/networking/udhcp/dhcpc.c
@@ -7,7 +7,6 @@
* Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
-#include <sys/time.h>
#include <sys/file.h>
#include <unistd.h>
#include <getopt.h>
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c
index 28acb6bcc..6c5a753eb 100644
--- a/networking/udhcp/dhcpd.c
+++ b/networking/udhcp/dhcpd.c
@@ -34,7 +34,6 @@
#include <errno.h>
#include <sys/ioctl.h>
#include <time.h>
-#include <sys/time.h>
#include "dhcpd.h"
#include "arpping.h"
diff --git a/networking/wget.c b/networking/wget.c
index d55f4b007..fdcc68df3 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -17,7 +17,6 @@
#include <signal.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
diff --git a/networking/zcip.c b/networking/zcip.c
index ed30bb33a..b5a904d46 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -38,7 +38,6 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
diff --git a/procps/renice.c b/procps/renice.c
index d4ce66d2e..711ed164e 100644
--- a/procps/renice.c
+++ b/procps/renice.c
@@ -38,7 +38,6 @@
#include <limits.h>
#include <errno.h>
#include <unistd.h>
-#include <sys/time.h>
#include <sys/resource.h>
#include "busybox.h"
diff --git a/procps/top.c b/procps/top.c
index 691b4ea7e..c0d16b658 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -40,7 +40,6 @@
#ifdef CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE
#include <time.h>
-#include <sys/time.h>
#include <fcntl.h>
#include <netinet/in.h> /* htons */
#endif
@@ -370,7 +369,6 @@ static void clearmems(void)
#ifdef CONFIG_FEATURE_USE_TERMIOS
#include <termios.h>
-#include <sys/time.h>
#include <signal.h>
diff --git a/shell/ash.c b/shell/ash.c
index 33eaf9227..c8ccf19b5 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -58,7 +58,6 @@
#include <sys/param.h>
#include <sys/resource.h>
#include <sys/stat.h>
-#include <sys/time.h>
#include <sys/wait.h>
#include <stdio.h>
diff --git a/util-linux/hwclock.c b/util-linux/hwclock.c
index 3d7f40026..e1a67f290 100644
--- a/util-linux/hwclock.c
+++ b/util-linux/hwclock.c
@@ -9,7 +9,6 @@
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/utsname.h>
#include <ctype.h>
#include <fcntl.h>
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index 2b011ebb0..27bd1b481 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -8,7 +8,6 @@
* Licensed under GPL v2 or later, see file License for details.
*/
-#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>