aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/busybox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h
index ebbe759e2..8905b0dbd 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -72,9 +72,14 @@ extern const char *applet_name;
72#define RESERVE_BB_BUFFER(buffer,len) char buffer[len] 72#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
73#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len] 73#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
74#else 74#else
75#ifdef BB_FEATURE_BUFFERS_GO_IN_BSS
76#define RESERVE_BB_BUFFER(buffer,len) static char buffer[len]
77#define RESERVE_BB_UBUFFER(buffer,len) static unsigned char buffer[len]
78#else
75#define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len) 79#define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len)
76#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len) 80#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
77#endif 81#endif
82#endif
78 83
79 84
80/* Bit map related macros -- libc5 doens't provide these... sigh. */ 85/* Bit map related macros -- libc5 doens't provide these... sigh. */