diff mbox series

[3/3] package/dc3dd: needs MMU

Message ID 20260105194056.2156773-3-bernd@kuhls.net
State New
Headers show
Series [1/3] package/dc3dd: fix build with gcc-15.x | expand

Commit Message

Bernd Kuhls Jan. 5, 2026, 7:40 p.m. UTC
savewd.c:75:27: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
   75 |           wd->val.child = fork ();

Fixes:
https://autobuild.buildroot.net/results/40a/40a90638f90260ca2cb51bac03b0f8fb23a6ccc4/

The build error occured already in January 2025:
https://autobuild.buildroot.net/results/9f3/9f3fefe5578dc41272e460146b566ac20f6cde75/
so a backport to the LTS branches should be considered.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/dc3dd/Config.in | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/package/dc3dd/Config.in b/package/dc3dd/Config.in
index bd181b7065..b4b7dfd691 100644
--- a/package/dc3dd/Config.in
+++ b/package/dc3dd/Config.in
@@ -1,5 +1,6 @@ 
 config BR2_PACKAGE_DC3DD
 	bool "dc3dd"
+	depends on BR2_USE_MMU # fork()
 	depends on !BR2_RISCV_32
 	depends on !BR2_arc
 	depends on BR2_TOOLCHAIN_HAS_THREADS
@@ -13,6 +14,7 @@  config BR2_PACKAGE_DC3DD
 	  https://sourceforge.net/projects/dc3dd/
 
 comment "dc3dd needs a glibc or uClibc toolchain w/ threads"
+	depends on BR2_USE_MMU
 	depends on !BR2_RISCV_32
 	depends on !BR2_arc
 	depends on !BR2_TOOLCHAIN_HAS_THREADS || \