aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-11-25 01:36:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-11-25 01:36:03 +0000
commit61befda93b2ed2458c8db50d2d03cff453d36565 (patch)
treed8d9c76401d87b183bd99e7c2e82d6b6cd79f564
parent16898406724b99ec61d16b38393137bddd6ecc25 (diff)
downloadbusybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.tar.gz
busybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.tar.bz2
busybox-w32-61befda93b2ed2458c8db50d2d03cff453d36565.zip
ash,hush: add TODO for rare build failure
*: remove some redundant includes
-rw-r--r--coreutils/dd.c1
-rw-r--r--coreutils/tee.c1
-rw-r--r--libbb/bb_askpass.c2
-rw-r--r--libbb/speed_table.c1
-rw-r--r--networking/telnet.c1
-rw-r--r--procps/top.c2
-rw-r--r--shell/ash.c14
-rw-r--r--shell/hush.c13
-rw-r--r--util-linux/more.c4
9 files changed, 25 insertions, 14 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 8a40aa77f..38dacc71d 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -8,7 +8,6 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <signal.h> /* For FEATURE_DD_SIGNAL_HANDLING */
12#include "libbb.h" 11#include "libbb.h"
13 12
14/* This is a NOEXEC applet. Be very careful! */ 13/* This is a NOEXEC applet. Be very careful! */
diff --git a/coreutils/tee.c b/coreutils/tee.c
index dc947c935..0f2424670 100644
--- a/coreutils/tee.c
+++ b/coreutils/tee.c
@@ -11,7 +11,6 @@
11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */ 11/* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */
12 12
13#include "libbb.h" 13#include "libbb.h"
14#include <signal.h>
15 14
16int tee_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15int tee_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int tee_main(int argc, char **argv) 16int tee_main(int argc, char **argv)
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index c60ef3708..c97649733 100644
--- a/libbb/bb_askpass.c
+++ b/libbb/bb_askpass.c
@@ -8,8 +8,6 @@
8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 */ 9 */
10 10
11#include <termios.h>
12
13#include "libbb.h" 11#include "libbb.h"
14 12
15/* do nothing signal handler */ 13/* do nothing signal handler */
diff --git a/libbb/speed_table.c b/libbb/speed_table.c
index 646f9146b..05fe66c64 100644
--- a/libbb/speed_table.c
+++ b/libbb/speed_table.c
@@ -7,7 +7,6 @@
7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 */ 8 */
9 9
10#include <termios.h>
11#include "libbb.h" 10#include "libbb.h"
12 11
13struct speed_map { 12struct speed_map {
diff --git a/networking/telnet.c b/networking/telnet.c
index ba6f2fb83..cc994250c 100644
--- a/networking/telnet.c
+++ b/networking/telnet.c
@@ -21,7 +21,6 @@
21 * 21 *
22 */ 22 */
23 23
24#include <termios.h>
25#include <arpa/telnet.h> 24#include <arpa/telnet.h>
26#include <netinet/in.h> 25#include <netinet/in.h>
27#include "libbb.h" 26#include "libbb.h"
diff --git a/procps/top.c b/procps/top.c
index 1d22871f6..c8a9539d6 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -644,8 +644,6 @@ static void clearmems(void)
644} 644}
645 645
646#if ENABLE_FEATURE_USE_TERMIOS 646#if ENABLE_FEATURE_USE_TERMIOS
647#include <termios.h>
648#include <signal.h>
649 647
650static void reset_term(void) 648static void reset_term(void)
651{ 649{
diff --git a/shell/ash.c b/shell/ash.c
index 55a79a7a6..66bfa67ba 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -53,11 +53,21 @@
53#endif 53#endif
54 54
55#include "busybox.h" /* for applet_names */ 55#include "busybox.h" /* for applet_names */
56//TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN?
57//#include "applet_tables.h" doesn't work
56#include <paths.h> 58#include <paths.h>
57#include <setjmp.h> 59#include <setjmp.h>
58#include <fnmatch.h> 60#include <fnmatch.h>
59#if JOBS || ENABLE_ASH_READ_NCHARS 61
60#include <termios.h> 62#if defined SINGLE_APPLET_MAIN
63/* STANDALONE does not make sense, and won't compile */
64#undef CONFIG_FEATURE_SH_STANDALONE
65#undef ENABLE_FEATURE_SH_STANDALONE
66#undef USE_FEATURE_SH_STANDALONE
67#undef SKIP_FEATURE_SH_STANDALONE(...)
68#define ENABLE_FEATURE_SH_STANDALONE 0
69#define USE_FEATURE_SH_STANDALONE(...)
70#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
61#endif 71#endif
62 72
63#ifndef PIPE_BUF 73#ifndef PIPE_BUF
diff --git a/shell/hush.c b/shell/hush.c
index 421272971..eafcbb4c9 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -67,6 +67,8 @@
67 */ 67 */
68 68
69#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */ 69#include "busybox.h" /* for APPLET_IS_NOFORK/NOEXEC */
70//TODO: pull in some .h and find out do we have SINGLE_APPLET_MAIN?
71//#include "applet_tables.h" doesn't work
70#include <glob.h> 72#include <glob.h>
71/* #include <dmalloc.h> */ 73/* #include <dmalloc.h> */
72#if ENABLE_HUSH_CASE 74#if ENABLE_HUSH_CASE
@@ -75,6 +77,17 @@
75 77
76#define HUSH_VER_STR "0.91" 78#define HUSH_VER_STR "0.91"
77 79
80#if defined SINGLE_APPLET_MAIN
81/* STANDALONE does not make sense, and won't compile */
82#undef CONFIG_FEATURE_SH_STANDALONE
83#undef ENABLE_FEATURE_SH_STANDALONE
84#undef USE_FEATURE_SH_STANDALONE
85#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
86#define ENABLE_FEATURE_SH_STANDALONE 0
87#define USE_FEATURE_SH_STANDALONE(...)
88#define SKIP_FEATURE_SH_STANDALONE(...) __VA_ARGS__
89#endif
90
78#if !BB_MMU && ENABLE_HUSH_TICK 91#if !BB_MMU && ENABLE_HUSH_TICK
79//#undef ENABLE_HUSH_TICK 92//#undef ENABLE_HUSH_TICK
80//#define ENABLE_HUSH_TICK 0 93//#define ENABLE_HUSH_TICK 0
diff --git a/util-linux/more.c b/util-linux/more.c
index cf8e137eb..b0f20c441 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -15,10 +15,6 @@
15 */ 15 */
16 16
17#include "libbb.h" 17#include "libbb.h"
18#if ENABLE_FEATURE_USE_TERMIOS
19#include <termios.h>
20#endif /* FEATURE_USE_TERMIOS */
21
22 18
23#if ENABLE_FEATURE_USE_TERMIOS 19#if ENABLE_FEATURE_USE_TERMIOS
24 20