mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-02 05:33:57 -09:00
src/pages.c:79:33: error: 'MADV_DONTNEED' undeclared (first use in this
function)
79 | if (madvise(addr, size, MADV_DONTNEED) == 0) {
The oldest build error found in the autobuilder logs dates back to 2024:
https://autobuild.buildroot.net/results/adf/adf52f767c92ab1db7b817094a3929f3cf918e82/
so a backport to LTS branches should be considered.
Fixes:
https://autobuild.buildroot.net/results/d6a/d6a9f7ff9d29eee9d9280364f872ffaa1544f192/
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
31 lines
946 B
Plaintext
31 lines
946 B
Plaintext
config BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
|
bool
|
|
# see include/jemalloc/internal/quantum.h
|
|
default y if BR2_arm || BR2_armeb
|
|
default y if BR2_aarch64 || BR2_aarch64_be
|
|
default y if BR2_i386 || BR2_x86_64
|
|
default y if BR2_m68k
|
|
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
|
|
default y if BR2_or1k
|
|
default y if BR2_powerpc
|
|
default y if BR2_riscv
|
|
default y if BR2_sh4 || BR2sh4eb || BR2_sh4a || BR2_sh4aeb
|
|
default y if BR2_sparc64
|
|
|
|
config BR2_PACKAGE_JEMALLOC
|
|
bool "jemalloc"
|
|
depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
depends on BR2_USE_MMU # madvise()
|
|
help
|
|
This library providing a malloc(3) implementation that
|
|
emphasizes fragmentation avoidance and scalable concurrency
|
|
support.
|
|
|
|
http://jemalloc.net/
|
|
|
|
comment "jemalloc needs a toolchain w/ threads"
|
|
depends on BR2_PACKAGE_JEMALLOC_ARCH_SUPPORTS
|
|
depends on BR2_USE_MMU
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS
|