aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/common_bufsiz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/common_bufsiz.c b/libbb/common_bufsiz.c
index 26faafcbb..1a3585169 100644
--- a/libbb/common_bufsiz.c
+++ b/libbb/common_bufsiz.c
@@ -58,11 +58,11 @@ char bb_common_bufsiz1[COMMON_BUFSIZE] ALIGNED(sizeof(long long));
58 * It is not defined as a dummy macro. 58 * It is not defined as a dummy macro.
59 * It means we have to provide this function. 59 * It means we have to provide this function.
60 */ 60 */
61char* bb_common_bufsiz1; 61char *const bb_common_bufsiz1 __attribute__ ((section (".data")));
62void setup_common_bufsiz(void) 62void setup_common_bufsiz(void)
63{ 63{
64 if (!bb_common_bufsiz1) 64 if (!bb_common_bufsiz1)
65 bb_common_bufsiz1 = xzalloc(COMMON_BUFSIZE); 65 *(char**)&bb_common_bufsiz1 = xzalloc(COMMON_BUFSIZE);
66} 66}
67# else 67# else
68# ifndef bb_common_bufsiz1 68# ifndef bb_common_bufsiz1