提交 16a4243c 编写于 作者: E Eric Blake

build: fix compilation on mingw

* src/util/command.c (virCommandAbort) [WIN32]: Provide stub.
Reported by Daniel P. Berrange's autobuilder.
上级 15d757ac
...@@ -1291,6 +1291,7 @@ virCommandWait(virCommandPtr cmd, int *exitstatus) ...@@ -1291,6 +1291,7 @@ virCommandWait(virCommandPtr cmd, int *exitstatus)
} }
#ifndef WIN32
/* /*
* Abort an async command if it is running, without issuing * Abort an async command if it is running, without issuing
* any errors or affecting errno. Designed for error paths * any errors or affecting errno. Designed for error paths
...@@ -1349,6 +1350,15 @@ cleanup: ...@@ -1349,6 +1350,15 @@ cleanup:
cmd->reap = false; cmd->reap = false;
errno = saved_errno; errno = saved_errno;
} }
#else /* WIN32 */
void
virCommandAbort(virCommandPtr cmd ATTRIBUTE_UNUSED)
{
/* Mingw lacks WNOHANG and kill(). But since we haven't ported
* virExecWithHook to mingw yet, there's no process to be killed,
* making this implementation trivially correct for now :) */
}
#endif
/* /*
* Release all resources * Release all resources
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册