File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -70,4 +70,14 @@ config NEWLIB_LIBC_CUSTOM_SBRK
70
70
Allow user to define custom version of the _sbrk function. Some application
71
71
may need to use the remaining RAM for also other purposes than heap.
72
72
73
+ config NEWLIB_LIBC_USE_POSIX_LIMITS_H
74
+ bool "Use Zephyr's posix_limits.h header"
75
+ default y
76
+ help
77
+ The newlib provided by the Zephyr SDK does not include all mandatory POSIX limits.
78
+ However, some external newlib-based toolchains do.
79
+
80
+ Disable this option if your toolchain's newlib already includes all mandatory POSIX
81
+ limits.
82
+
73
83
endif # NEWLIB_LIBC
Original file line number Diff line number Diff line change 8
8
#define ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_LIMITS_H_
9
9
10
10
#include_next <limits.h>
11
+ #ifdef CONFIG_NEWLIB_LIBC_USE_POSIX_LIMITS_H
11
12
#include <zephyr/posix/posix_limits.h>
13
+ #endif
12
14
13
15
#endif /* ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_LIMITS_H_ */
You can’t perform that action at this time.
0 commit comments