Skip to content

Commit ae10be3

Browse files
committed
Shrink default xtensa fd buffer size to 128 bytes
Otherwise default is 1024 bytes
1 parent 312c7d4 commit ae10be3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

newlib/libc/include/sys/config.h

+2
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@
188188
#ifdef __XTENSA__
189189
#include <xtensa/config/core-isa.h>
190190
#define MALLOC_ALIGNMENT ((XCHAL_DATA_WIDTH) < 16 ? 16 : (XCHAL_DATA_WIDTH))
191+
/* esp8266-specific: shrink the default fd buffer size */
192+
#define __BUFSIZ__ 128
191193
#endif
192194

193195
/* This block should be kept in sync with GCC's limits.h. The point

0 commit comments

Comments
 (0)