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

sys/wait.h does not exist on the Windows toolchain, so the unguarded include
broke the Windows test build outright — the suites never ran. The test body is
already skipped on Windows, so the includes belong behind the same guard, as
test_cypher.c does for the same pair.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel committed 2026-08-06 03:30:32 +02:00
1 parent c6478790d8
commit 52303157bf
1 file changed
+3 -1
+3 -1
View File
@@ -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 ────────────────────────────────────── */