aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/busybox.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/busybox.h b/include/busybox.h
index 018c636cf..be6c6f305 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -266,4 +266,12 @@ char *format(unsigned long val, unsigned long hr);
266#define GIGABYTE (MEGABYTE*1024) 266#define GIGABYTE (MEGABYTE*1024)
267#endif 267#endif
268 268
269#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
270#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
271#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
272#else
273#define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len)
274#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
275#endif
276
269#endif /* _BB_INTERNAL_H_ */ 277#endif /* _BB_INTERNAL_H_ */