From fc22442162ebfd7bc801f2ccfbb5e28303ea1720 Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Mon, 9 Feb 2026 19:40:42 -0300 Subject: [PATCH] tools: avoid host macro collisions in user init (cppcheck) --- user/init.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/user/init.c b/user/init.c index 6c9aa8c..86ccfdb 100644 --- a/user/init.c +++ b/user/init.c @@ -1,5 +1,34 @@ #include +#ifdef SIGKILL +#undef SIGKILL +#endif +#ifdef SIGUSR1 +#undef SIGUSR1 +#endif +#ifdef SIGSEGV +#undef SIGSEGV +#endif +#ifdef SIGTTIN +#undef SIGTTIN +#endif +#ifdef SIGTTOU +#undef SIGTTOU +#endif + +#ifdef WNOHANG +#undef WNOHANG +#endif +#ifdef SEEK_SET +#undef SEEK_SET +#endif +#ifdef SEEK_CUR +#undef SEEK_CUR +#endif +#ifdef SEEK_END +#undef SEEK_END +#endif + enum { SYSCALL_WRITE = 1, SYSCALL_EXIT = 2, -- 2.43.0