mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Added preprocessor directives for Windows
Signed-off-by: salonidabgar <salonidabgar@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
efc5bc633f
commit
dfa9421e01
@@ -237,6 +237,7 @@ static pid_t torture_read_pidfile(const char *pidfile)
|
|||||||
|
|
||||||
int torture_terminate_process(const char *pidfile)
|
int torture_terminate_process(const char *pidfile)
|
||||||
{
|
{
|
||||||
|
#ifndef WIN32
|
||||||
ssize_t rc;
|
ssize_t rc;
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
int is_running = 1;
|
int is_running = 1;
|
||||||
@@ -283,6 +284,10 @@ int torture_terminate_process(const char *pidfile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
#else
|
||||||
|
(void)pidfile;
|
||||||
|
return -1; /* Stub implementation for Windows */
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_session torture_ssh_session(struct torture_state *s,
|
ssh_session torture_ssh_session(struct torture_state *s,
|
||||||
|
|||||||
Reference in New Issue
Block a user