Added preprocessor directives for Windows

Signed-off-by: salonidabgar <salonidabgar@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
salonidabgar
2025-04-17 22:50:14 +05:30
committed by Jakub Jelen
parent efc5bc633f
commit dfa9421e01

View File

@@ -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,