package/bdwgc: needs MMU

Fix the following build failure raise since bump to version 8.2.2 in
commit d761968255 and
9d8c196268:

os_dep.c: In function 'block_unmap_inner':
os_dep.c:2668:17: warning: implicit declaration of function 'madvise'; did you mean 'raise'? [-Wimplicit-function-declaration]
 2668 |             if (madvise(start_addr, len, MADV_DONTNEED) == -1)
      |                 ^~~~~~~
      |                 raise

Fixes:
 - http://autobuild.buildroot.org/results/2b9924cb8c36a75e1ca7aefe83e95dc11c10ded6

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2022-11-05 22:16:39 +01:00 committed by Thomas Petazzoni
parent 94e47000c2
commit ceb51d1463
3 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_BDWGC
bool "bdwgc"
depends on BR2_USE_MMU # madvise()
depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS
select BR2_PACKAGE_LIBATOMIC_OPS
help

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_GUILE
bool "guile"
depends on BR2_USE_MMU # bdwgc
depends on !BR2_TOOLCHAIN_USES_MUSL # no strtol_l
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS # bdwgc
@ -17,5 +18,6 @@ config BR2_PACKAGE_GUILE
http://www.gnu.org/software/guile
comment "guile needs a uClibc or glibc toolchain w/ threads, wchar, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL

View File

@ -3,6 +3,7 @@ config BR2_PACKAGE_POKE
depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS # bdwgc
depends on BR2_USE_WCHAR # needs wctomb
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
depends on BR2_USE_MMU # bdwgc
select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # less
select BR2_PACKAGE_BDWGC
select BR2_PACKAGE_LESS # runtime
@ -25,4 +26,5 @@ config BR2_PACKAGE_POKE
comment "poke needs a toolchain w/ NPTL, wchar"
depends on BR2_PACKAGE_LIBATOMIC_OPS_ARCH_SUPPORTS
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_USE_WCHAR