X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fbusybox.h;h=e8055b06c0545b5b996b33d6f83cb2281b9bc637;hb=ceeff7381929930fe8d7e33543e285d5fdcf1c68;hp=d4a57732dfb6e57dea72efa88422c783ba6ddb5e;hpb=5cd2a2d53e5dd395a88d4d1ca6cd832c7f870fb5;p=oweals%2Fbusybox.git diff --git a/include/busybox.h b/include/busybox.h index d4a57732d..e8055b06c 100644 --- a/include/busybox.h +++ b/include/busybox.h @@ -31,6 +31,8 @@ #include #include +#define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")" + #ifdef DMALLOC #include "dmalloc.h" #endif @@ -64,15 +66,18 @@ extern const struct BB_applet applets[]; #include "applets.h" #undef PROTOTYPES -extern const char *applet_name; - #ifdef BB_FEATURE_BUFFERS_GO_ON_STACK #define RESERVE_BB_BUFFER(buffer,len) char buffer[len] #define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len] #else +#ifdef BB_FEATURE_BUFFERS_GO_IN_BSS +#define RESERVE_BB_BUFFER(buffer,len) static char buffer[len] +#define RESERVE_BB_UBUFFER(buffer,len) static unsigned char buffer[len] +#else #define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len) #define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len) #endif +#endif /* Bit map related macros -- libc5 doens't provide these... sigh. */