From e15d7573a1263fb364d1678c3a46be47a8b5e5ea Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 2 Jun 2006 20:56:16 +0000 Subject: - move #include busybox.h to the very top so we pull in the config and eventual platform specific includes in early. --- shell/ash.c | 7 +++---- shell/cmdedit.c | 3 +-- shell/hush.c | 3 ++- shell/lash.c | 2 +- shell/msh.c | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index c8ccf19..5cdd7f0 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -44,11 +44,12 @@ */ - #define IFS_BROKEN #define PROFILE 0 +#include "busybox.h" + #ifdef DEBUG #define _GNU_SOURCE #endif @@ -76,12 +77,10 @@ #include #include #include -#include +/*#include */ #include #include - -#include "busybox.h" #include "pwd_.h" #ifdef CONFIG_ASH_JOB_CONTROL diff --git a/shell/cmdedit.c b/shell/cmdedit.c index d0e6422..8b5b2b9 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -31,6 +31,7 @@ */ +#include "busybox.h" #include #include #include @@ -41,8 +42,6 @@ #include #include -#include "busybox.h" - #include "../shell/cmdedit.h" diff --git a/shell/hush.c b/shell/hush.c index 0a46d12..e370738 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -77,6 +77,8 @@ * * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */ + +#include "busybox.h" #include /* isalpha, isdigit */ #include /* getpid */ #include /* getenv, atoi */ @@ -97,7 +99,6 @@ /* #define DEBUG_SHELL */ #if 1 -#include "busybox.h" #include "cmdedit.h" #else #define bb_applet_name "hush" diff --git a/shell/lash.c b/shell/lash.c index 8e8d45a..54408c9 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -21,6 +21,7 @@ //#define DEBUG_SHELL +#include "busybox.h" #include #include #include @@ -33,7 +34,6 @@ #include #include #include -#include "busybox.h" #include "cmdedit.h" #ifdef CONFIG_LOCALE_SUPPORT diff --git a/shell/msh.c b/shell/msh.c index e47af79..8bc769b 100644 --- a/shell/msh.c +++ b/shell/msh.c @@ -27,6 +27,7 @@ * Original copyright notice is retained at the end of this file. */ +#include "busybox.h" #include #include #include @@ -46,7 +47,6 @@ #include #include "cmdedit.h" -#include "busybox.h" /* Conditional use of "register" keyword */ -- cgit v1.1