From dfa9421e0170996d28f3cd1645057dab471f63d5 Mon Sep 17 00:00:00 2001 From: salonidabgar Date: Thu, 17 Apr 2025 22:50:14 +0530 Subject: [PATCH] Added preprocessor directives for Windows Signed-off-by: salonidabgar Reviewed-by: Jakub Jelen --- tests/torture.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/torture.c b/tests/torture.c index 27dccced..76774e2f 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -237,6 +237,7 @@ static pid_t torture_read_pidfile(const char *pidfile) int torture_terminate_process(const char *pidfile) { +#ifndef WIN32 ssize_t rc; pid_t pid; int is_running = 1; @@ -283,6 +284,10 @@ int torture_terminate_process(const char *pidfile) } return rc; +#else + (void)pidfile; + return -1; /* Stub implementation for Windows */ +#endif } ssh_session torture_ssh_session(struct torture_state *s,