From: Tulio A M Mendes Date: Mon, 9 Feb 2026 22:40:42 +0000 (-0300) Subject: tools: avoid host macro collisions in user init (cppcheck) X-Git-Url: https://projects.tadryanom.me/?a=commitdiff_plain;h=9e828016960cc07b1ae358b5d2bca418dda10433;p=AdrOS.git tools: avoid host macro collisions in user init (cppcheck) --- diff --git a/user/init.c b/user/init.c index b4acff8c..45cbf0f3 100644 --- a/user/init.c +++ b/user/init.c @@ -9,6 +9,35 @@ #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,