Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix(test): guard the POSIX-only includes in the gitignore test

Martin Vogel52303157bf9c
diff --git a/tests/test_gitignore.c b/tests/test_gitignore.c
index 0541e7fcc..7cae17362 100644
--- a/tests/test_gitignore.c
+++ b/tests/test_gitignore.c
@@ -7,8 +7,10 @@
#include "test_framework.h"
#include "discover/discover.h"
#include <string.h> /* strdup (test seam) */
+#ifndef _WIN32
#include <sys/wait.h> /* fork/waitpid crash-isolation for the backtracking budget */
-#include <unistd.h>
+#include <unistd.h> /* alarm() as the liveness backstop */
+#endif
/* ── Basic pattern matching ────────────────────────────────────── */