From 029064baeb3528eb68c54c24c195212015088ff5 Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sat, 18 Jul 2026 02:51:31 +0900 Subject: [PATCH] fix(timerfd): actually compile the sys_timerfd module (export timerfd_* symbols) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sys_timerfd module (timerfd_create/settime/gettime) existed on disk but was never declared in header/mod.rs, so its code was NOT compiled and the symbols were absent from libc — timerfd was entirely non-functional. The generated header still declared the functions, so C programs compiled but failed to LINK with 'undefined reference to timerfd_create/timerfd_settime' (e.g. libwayland's event-loop.c, blocking the whole Wayland stack). Declare the module so the implementation is built and the symbols exported. --- src/header/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header/mod.rs b/src/header/mod.rs index b95bc92a40..d5ad5ba31b 100644 --- a/src/header/mod.rs +++ b/src/header/mod.rs @@ -174,6 +174,7 @@ pub mod sys_syscall; pub mod sys_time; #[deprecated] pub mod sys_timeb; +pub mod sys_timerfd; //pub mod sys_times; pub mod arch_aarch64_user; pub mod arch_riscv64_user;