]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
tools: avoid host macro collisions in user init (cppcheck)
authorTulio A M Mendes <[email protected]>
Mon, 9 Feb 2026 22:40:42 +0000 (19:40 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 9 Feb 2026 22:40:42 +0000 (19:40 -0300)
user/init.c

index 6c9aa8c60259b17e8fe38c48814e635c99f5a736..86ccfdb886315c738ea75f0b5ac4f6411ec17cdc 100644 (file)
@@ -1,5 +1,34 @@
 #include <stdint.h>
 
+#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,