diff --git a/include/busybox.h b/include/busybox.h index 1f9f9775f..befbea544 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -9,15 +9,6 @@ #include "bb_config.h" -#include -#include -#include -#include -#include - -extern const char BB_BANNER[]; - -/* Pull in the utility routines from libbb */ #include "libbb.h" enum Location { @@ -54,22 +45,4 @@ extern const struct BB_applet applets[]; #include "applets.h" #undef PROTOTYPES -#ifndef RB_POWER_OFF -/* Stop system and switch power off if possible. */ -#define RB_POWER_OFF 0x4321fedc -#endif - -/* Try to pull in PATH_MAX */ -#include - -/* for PATH_MAX on systems that don't have it in limits.h */ -#include -#ifndef PATH_MAX -#define PATH_MAX 256 -#endif - -#ifdef DMALLOC -#include -#endif - #endif /* _BB_INTERNAL_H_ */ diff --git a/include/libbb.h b/include/libbb.h index e4be35d48..4293d394b 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -11,23 +11,22 @@ #ifndef __LIBBUSYBOX_H__ #define __LIBBUSYBOX_H__ 1 +#include "bb_config.h" #include "platform.h" +#include +#include +#include #include #include #include -#include #include -#include -#include - -#include -#include - -#include #include +#include +#include + + -#include "bb_config.h" #ifdef CONFIG_SELINUX #include #endif @@ -526,9 +525,22 @@ void *md5_end(void *resbuf, md5_ctx_t *ctx); extern uint32_t *bb_crc32_filltable (int endian); -/* busybox.h will include dmalloc later for us, else include it here. */ -#if !defined _BB_INTERNAL_H_ && defined DMALLOC +#ifndef RB_POWER_OFF +/* Stop system and switch power off if possible. */ +#define RB_POWER_OFF 0x4321fedc +#endif + +/* Try to pull in PATH_MAX */ +#include +#include +#ifndef PATH_MAX +#define PATH_MAX 256 +#endif + +#ifdef DMALLOC #include #endif +extern const char BB_BANNER[]; + #endif /* __LIBBUSYBOX_H__ */