提交 981e2c70 编写于 作者: R Roman Bogorodskiy

util: fix virfcp build on non-Linux

 - Include virerror.h for virReportSystemError
 - Rename stub functions to match original function names
上级 ca30bed9
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include "viralloc.h" #include "viralloc.h"
#include "virfile.h" #include "virfile.h"
#include "virerror.h"
#include "virstring.h" #include "virstring.h"
#include "virfcp.h" #include "virfcp.h"
...@@ -80,14 +81,14 @@ virFCReadRportValue(const char *rport, ...@@ -80,14 +81,14 @@ virFCReadRportValue(const char *rport,
#else #else
bool bool
virSysfsIsCapableFCRport(const char *rport ATTRIBUTE_UNUSED) virFCIsCapableRport(const char *rport ATTRIBUTE_UNUSED)
{ {
virReportSystemError(ENOSYS, "%s", _("Not supported on this platform")); virReportSystemError(ENOSYS, "%s", _("Not supported on this platform"));
return false; return false;
} }
int int
virSysfsReadFCRport(const char *rport ATTRIBUTE_UNUSED, virFCReadRportValue(const char *rport ATTRIBUTE_UNUSED,
const char *entry ATTRIBUTE_UNUSED, const char *entry ATTRIBUTE_UNUSED,
char **result ATTRIBUTE_UNUSED) char **result ATTRIBUTE_UNUSED)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册