#include <sys/stat.h>
#include <sys/types.h>
+#define BB_BANNER "BusyBox v" BB_VER " (" BB_BT ")"
+
#ifdef DMALLOC
#include "dmalloc.h"
#endif
#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. */