summaryrefslogtreecommitdiff
path: root/busybox.h
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.h')
-rw-r--r--busybox.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/busybox.h b/busybox.h
index ebbe759..8905b0d 100644
--- a/busybox.h
+++ b/busybox.h
@@ -72,9 +72,14 @@ extern const char *applet_name;
#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. */